Function at 0x4038e0
Capabilities:
Delete directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x19a54
call fcn.00409410
mov eax, dword [0x43a05c]
xor eax, esp
mov dword [esp + 0x19a50], eax
push ebx
push esi
push edi
mov edi, edx
mov eax, dword [edi]
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], ecx
cmp eax, ebx
je 0x403d0a
cmp dword [eax], 1
je 0x403928
mov dword [0x445bac], 0x80000
jmp 0x403937
mov esi, dword [eax + 4]
mov eax, ecx
call fcn.00407860
mov dword [0x445bac], eax
mov eax, dword [edi]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], dx
mov dword [esp + 0x254], ebx
cmp eax, ebx
jne 0x403960
mov dword [0x445bac], 0x10000
jmp 0x4039eb
cmp dword [eax], 1
je 0x403971
mov dword [0x445bac], 0x80000
jmp 0x4039eb
mov esi, dword [eax + 4]
mov edi, dword [esi]
or eax, 0xffffffff
cmp dword [edi + 4], eax
jg 0x403985
mov eax, 0x10000
jmp 0x4039e6
cmp dword [esi + 4], eax
je 0x403992
call fcn.00407650
or eax, 0xffffffff
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor edx, edx
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], dx
mov dword [esp + 0x234], ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x244], ebx
mov dword [esp + 0x248], ebx
mov dword [esp + 0x24c], ebx
mov dword [esp + 0x250], ebx
mov dword [esp + 0x254], ebx
xor eax, eax
mov dword [0x445bac], eax
xor esi, esi
mov ebx, ecx
xor edi, edi
cmp ecx, esi
mov dword [esp + 0x1c], ebx
jle 0x403a4c
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x2c], cx
mov dword [esp + 0x254], esi
cmp eax, esi
jne 0x403a21
mov dword [0x445bac], 0x10000
jmp 0x403a47
cmp dword [eax], 1
je 0x403a32
mov dword [0x445bac], 0x80000
jmp 0x403a47
mov eax, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, eax
call fcn.004078d0
mov dword [0x445bac], eax
inc edi
cmp edi, ebx
jl 0x4039f9
xor edi, edi
cmp ebx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
jg 0x403a82
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x403d21
mov dword [0x445bac], 0x10000
jmp 0x403de5
xor esi, esi
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
xor ecx, ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x2c], cx
mov dword [esp + 0x254], esi
cmp eax, esi
jne 0x403aaa
mov dword [0x445bac], 0x10000
jmp 0x403ad0
cmp dword [eax], 1
je 0x403abb
mov dword [0x445bac], 0x80000
jmp 0x403ad0
mov eax, dword [eax + 4]
lea edx, [esp + 0x28]
push edx
push edi
mov ecx, eax
call fcn.004078d0
mov dword [0x445bac], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x260]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
add esp, 0x10
push str.usp10.
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jne 0x403c7a
push str.lpk.
lea ecx, [esp + 0x30]
push ecx
call esi
test eax, eax
jne 0x403c7a
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403c8c
mov dword [esp + 0xc], 0
jmp 0x403b54
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x403b6b
mov ebx, 0x10000
mov dword [0x445bac], ebx
jmp 0x403b97
cmp dword [eax], 1
je 0x403b7d
mov ebx, 0x80000
mov dword [0x445bac], ebx
jmp 0x403b97
mov eax, dword [eax + 4]
lea ecx, [esp + 0xa58]
push ecx
push edi
mov ebx, eax
call fcn.00407e90
mov dword [0x445bac], eax
mov ebx, eax
mov edi, 0x19000
test ebx, ebx
jne 0x403bab
mov edi, dword [esp + 0x254]
sub edi, dword [esp + 0xc]
push 0
lea edx, [esp + 0x28]
push edx
push edi
lea eax, [esp + 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esp + 0xc], edi
add dword [esp + 0x18], edi
cmp ebx, 0x600
je 0x403b50
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403be0
sub eax, edx
sar eax, 1
lea ecx, [esp + eax*2 + 0x24]
push str..exe
push ecx
mov dword [esp + 0x14], eax
call fcn.00408c92
add esp, 8
test eax, eax
jne 0x403c6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x64
div ecx
mov ecx, 0x20
mov eax, edx
mov dword [esp + 0x18], eax
add al, byte [esp + 0x14]
jmp 0x403c30
mov byte [esp + 0xa58], al
test al, al
jne 0x403c43
mov byte [esp + 0xa58], 0x31
sub ecx, 1
jne 0x403c30
push 2
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push 0x20
lea eax, [esp + 0xa64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, ebx
mov dword [esp + 0x14], edi
jl 0x403a80
jmp 0x403a5a
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
test edi, edi
jne 0x403cc5
mov dword [0x445bac], 0x10000
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19a50]
xor ecx, esp
call fcn.0040892b
mov esp, ebp
pop ebp
ret
cmp dword [edi], 1
je 0x403ceb
mov dword [0x445bac], 0x80000
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19a50]
xor ecx, esp
call fcn.0040892b
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 4]
call fcn.00407ff0
mov dword [0x445bac], eax
test esi, esi
je 0x403d01
call fcn.00408100
push edi
call fcn.00408920
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x19a50]
xor ecx, esp
call fcn.0040892b
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 1
je 0x403d35
mov dword [0x445bac], 0x80000
jmp 0x403de5
mov esi, dword [ebx + 4]
cmp dword [esi + 4], 0xffffffff
je 0x403d45
mov edi, dword [esi]
call fcn.00407650
mov edi, dword [esi]
mov dword [esi + 4], 0xffffffff
test edi, edi
je 0x403d89
cmp dword [edi + 0x7c], 0
je 0x403d5d
call fcn.00407650
mov ebx, dword [edi]
test ebx, ebx
je 0x403d7c
cmp byte [ebx + 0x10], 0
je 0x403d73
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00408920
add esp, 4
push edi
call fcn.00409176
mov ebx, dword [esp + 0x20]
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 0x23c]
mov dword [0x445bac], 0
test eax, eax
je 0x403dac
push eax
call fcn.004093f7
add esp, 4
mov eax, dword [esi + 0x240]
mov dword [esi + 0x23c], 0
test eax, eax
je 0x403dc9
push eax
call fcn.004093f7
add esp, 4
push esi
mov dword [esi + 0x240], 0
call fcn.00408920
add esp, 4
push ebx
call fcn.00408920
add esp, 4
mov ecx, dword [esp + 0x19a5c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040892b
mov esp, ebp
pop ebp
ret