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

Disassembly:
push 0xffffffffffffffff
push 0x40e0e1
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.00402c10
mov eax, dword [eax]
mov ecx, 0x410a88
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402696
test dx, dx
je 0x402692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402696
add eax, 4
add ecx, 4
test dx, dx
jne 0x402670
xor eax, eax
jmp 0x40269b
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 0x4026c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4026d8
push 1
push 0x410a8c
lea ecx, [esp + 0x628]
push ecx
call fcn.004020b0
mov eax, dword [esp + 0x61c]
push 0xfde9
lea edx, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
call fcn.00401ee0
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 0x40271b
push eax
call fcn.004037d9
add esp, 4
test esi, esi
jne 0x40277f
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 0x40274a
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 0x402778
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4029d6
push esi
call sub.zlib1.dll_Ordinal_65
test eax, eax
jne 0x402975
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 0x402967
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x208]
call fcn.00401b80
mov byte [esp + 0x614], 2
mov eax, dword [esp + 0xc8]
push eax
mov ebx, eax
call fcn.00403971
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40293f
cmp byte [esp + 0x624], 0
je 0x402807
push str.cdf283818fda91abb904873e7125055e
push esi
call sub.zlib1.dll_Ordinal_79
jmp 0x40280d
push esi
call sub.zlib1.dll_Ordinal_67
test eax, eax
jne 0x402936
push ebx
push ebp
push esi
call sub.zlib1.dll_Ordinal_68
mov edi, eax
test edi, edi
jl 0x402930
mov eax, dword [esp + 0x620]
add eax, 0xfffffff0
call fcn.00402040
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.00402d00
mov byte [esp + 0x614], 4
mov edx, dword [esp + 0x100]
test edx, edx
jne 0x40287e
xor eax, eax
jmp 0x402892
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402883
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004020b0
mov byte [esp + 0x614], 3
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x104]
cmp eax, ecx
je 0x4028c1
push eax
call fcn.004037d9
add esp, 4
lea edx, [esp + 0x18]
push edx
call fcn.00402a00
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x4028dd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x402908
call fcn.004010c0
mov edi, eax
cmp edi, 0xffffffff
je 0x402908
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 0x40292c
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.004037d9
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 0x402967
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 0x402790
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 0x4029a6
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 0x4029d4
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.004034d3
add esp, 0x604
ret