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

Disassembly:
push 0xffffffffffffffff
push 0x40e0a1
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.00402bd0
mov eax, dword [eax]
mov ecx, 0x410a88
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402656
test dx, dx
je 0x402652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402656
add eax, 4
add ecx, 4
test dx, dx
jne 0x402630
xor eax, eax
jmp 0x40265b
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 0x402680
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402698
push 1
push 0x410a8c
lea ecx, [esp + 0x628]
push ecx
call fcn.00402070
mov eax, dword [esp + 0x61c]
push 0xfde9
lea edx, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
call fcn.00401ea0
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 0x4026db
push eax
call fcn.00403799
add esp, 4
test esi, esi
jne 0x40273f
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 0x40270a
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 0x402738
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x402996
push esi
call sub.zlib1.dll_Ordinal_65
test eax, eax
jne 0x402935
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 0x402927
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x208]
call fcn.00401b40
mov byte [esp + 0x614], 2
mov eax, dword [esp + 0xc8]
push eax
mov ebx, eax
call fcn.00403931
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4028ff
cmp byte [esp + 0x624], 0
je 0x4027c7
push str.cdf283818fda91abb904873e7125055e
push esi
call sub.zlib1.dll_Ordinal_79
jmp 0x4027cd
push esi
call sub.zlib1.dll_Ordinal_67
test eax, eax
jne 0x4028f6
push ebx
push ebp
push esi
call sub.zlib1.dll_Ordinal_68
mov edi, eax
test edi, edi
jl 0x4028f0
mov eax, dword [esp + 0x620]
add eax, 0xfffffff0
call fcn.00402000
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.00402cc0
mov byte [esp + 0x614], 4
mov edx, dword [esp + 0x100]
test edx, edx
jne 0x40283e
xor eax, eax
jmp 0x402852
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402843
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00402070
mov byte [esp + 0x614], 3
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x104]
cmp eax, ecx
je 0x402881
push eax
call fcn.00403799
add esp, 4
lea edx, [esp + 0x18]
push edx
call fcn.004029c0
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x40289d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4028c8
call fcn.004010c0
mov edi, eax
cmp edi, 0xffffffff
je 0x4028c8
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 0x4028ec
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.00403799
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 0x402927
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 0x402750
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 0x402966
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 0x402994
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.00403493
add esp, 0x604
ret