Function at 0x402660
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e131
mov eax, dword fs:[0]
push eax
sub esp, 0x5f8
mov eax, dword [0x413020]
xor eax, esp
mov dword [esp + 0x5f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x60c]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x620]
mov dword [esp + 0x614], 1
call fcn.00402c60
mov eax, dword [eax]
mov ecx, 0x410be8
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4026e6
test dx, dx
je 0x4026e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4026e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4026c0
xor eax, eax
jmp 0x4026eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402728
push 1
push 0x410bec
lea ecx, [esp + 0x628]
push ecx
call fcn.00402100
mov eax, dword [esp + 0x61c]
push 0xfde9
lea edx, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
call fcn.00401f30
mov ecx, dword [esp + 0x28]
push ecx
call sub.zlib1.dll_Ordinal_61
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
mov dword [esp + 0x1c], esi
cmp eax, edx
je 0x40276b
push eax
call fcn.00403829
add esp, 4
test esi, esi
jne 0x4027cf
mov byte [esp + 0x614], 0
mov eax, dword [esp + 0x61c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40279a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x614], 0xffffffff
mov eax, dword [esp + 0x620]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x402a26
push esi
call sub.zlib1.dll_Ordinal_65
test eax, eax
jne 0x4029c5
lea ecx, [ecx]
push 0
push 0
push 0
push 0
push 0x400
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0xc4]
push edx
push esi
call sub.zlib1.dll_Ordinal_64
test eax, eax
jne 0x4029b7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x208]
call fcn.00401bd0
mov byte [esp + 0x614], 2
mov eax, dword [esp + 0xc8]
push eax
mov ebx, eax
call fcn.00403b71
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40298f
cmp byte [esp + 0x624], 0
je 0x402857
push str.cdf283818fda91abb904873e7125055e
push esi
call sub.zlib1.dll_Ordinal_79
jmp 0x40285d
push esi
call sub.zlib1.dll_Ordinal_67
test eax, eax
jne 0x402986
push ebx
push ebp
push esi
call sub.zlib1.dll_Ordinal_68
mov edi, eax
test edi, edi
jl 0x402980
mov eax, dword [esp + 0x620]
add eax, 0xfffffff0
call fcn.00402090
add eax, 0x10
mov dword [esp + 0x18], eax
lea edx, [esp + 0x204]
lea ecx, [esp + 0x104]
mov byte [esp + 0x614], 3
push edx
lea eax, [esp + 0x104]
mov dword [esp + 0x104], ecx
call fcn.00402d50
mov byte [esp + 0x614], 4
mov edx, dword [esp + 0x100]
test edx, edx
jne 0x4028ce
xor eax, eax
jmp 0x4028e2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4028d3
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00402100
mov byte [esp + 0x614], 3
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x104]
cmp eax, ecx
je 0x402911
push eax
call fcn.00403829
add esp, 4
lea edx, [esp + 0x18]
push edx
call fcn.00402a50
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x40292d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x402958
call fcn.004010c0
mov edi, eax
cmp edi, 0xffffffff
je 0x402958
push 0
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x614], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40297c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push esi
call sub.zlib1.dll_Ordinal_72
push ebp
call fcn.00403829
add esp, 4
mov byte [esp + 0x614], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call sub.zlib1.dll_Ordinal_66
test eax, eax
je 0x4027e0
push esi
call sub.zlib1.dll_Ordinal_62
mov byte [esp + 0x614], 0
mov eax, dword [esp + 0x61c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x614], 0xffffffff
mov eax, dword [esp + 0x620]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x60c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5f0]
xor ecx, esp
call fcn.00403523
add esp, 0x604
ret