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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4202d7
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x42b060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push edx
lea ecx, [ebp - 0x5fc]
call fcn.00404a00
push ecx
lea eax, [ebp - 0x5f8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x5fc]
call fcn.00408b70
mov ecx, 0x427764
mov eax, dword [eax]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408866
test dx, dx
je 0x408862
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408866
add eax, 4
add ecx, 4
test dx, dx
jne 0x408840
xor eax, eax
jmp 0x40886b
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x5f8]
test eax, eax
setne bl
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408892
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4088a8
push 1
push 0x427764
lea ecx, [ebp - 0x5fc]
call fcn.004071d0
push 0xfde9
push dword [esi]
lea eax, [ebp - 0x498]
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x49c], eax
call fcn.00405320
push dword [ebp - 0x49c]
call dword [sym.imp.zlib1.dll_Ordinal_61]
mov ebx, eax
lea ecx, [ebp - 0x498]
mov eax, dword [ebp - 0x49c]
cmp eax, ecx
je 0x4088ed
push eax
call fcn.00409763
add esp, 4
test ebx, ebx
jne 0x4088f8
xor bl, bl
jmp 0x408b28
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_65]
test eax, eax
jne 0x408b1f
push 0
push 0
push 0
push 0
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x4ec]
push eax
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_64]
test eax, eax
jne 0x408b10
mov eax, dword [0x42cbb0]
mov ecx, 0x42cbb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5f8], eax
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x408975
movzx esi, ax
mov ecx, esi
call fcn.004083c0
test eax, eax
je 0x408981
push esi
push eax
lea ecx, [ebp - 0x5f8]
call fcn.004072a0
jmp 0x408981
push eax
lea ecx, [ebp - 0x5f8]
call fcn.00404a90
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x4d0]
push edi
mov dword [ebp - 0x60c], edi
call fcn.00409e8c
mov esi, eax
add esp, 4
mov dword [ebp - 0x604], esi
test esi, esi
je 0x408aea
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_67]
test eax, eax
jne 0x408ae1
push edi
push esi
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_68]
mov edi, eax
test edi, edi
js 0x408ada
lea eax, [ebp - 0x5fc]
push eax
lea ecx, [ebp - 0x600]
call fcn.00404a00
lea eax, [ebp - 0x5f0]
mov byte [ebp - 4], 3
mov dword [ebp - 0x5f4], eax
lea eax, [ebp - 0x414]
push ecx
push eax
lea ecx, [ebp - 0x5f4]
call fcn.00405270
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5f4]
test edx, edx
jne 0x408a13
xor ecx, ecx
jmp 0x408a2f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x408a20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x600]
call fcn.004071d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5f0]
mov eax, dword [ebp - 0x5f4]
cmp eax, ecx
je 0x408a59
push eax
call fcn.00409763
add esp, 4
sub esp, 8
lea ecx, [ebp - 0x600]
call fcn.00403500
mov esi, dword [ebp - 0x600]
test edi, edi
jne 0x408a7b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x408ab6
mov ecx, esi
call fcn.00402680
mov edi, eax
cmp edi, 0xffffffff
je 0x408ab6
push 0
lea eax, [ebp - 0x608]
mov dword [ebp - 0x608], 0
push eax
push dword [ebp - 0x60c]
push dword [ebp - 0x604]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408ad4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x604]
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_72]
push esi
call fcn.00409763
add esp, 4
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x5f8]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408b10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_66]
test eax, eax
je 0x408907
push ebx
call dword [sym.imp.zlib1.dll_Ordinal_62]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x5fc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x408b4c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408e77
mov esp, ebp
pop ebp
ret