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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476896
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x496074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], edx
cmp dword [ecx + 0x14], 0x10
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x231], 0
jb 0x42efa5
mov ecx, dword [ecx]
push ecx
call fcn.00434bf0
mov esi, eax
add esp, 4
test esi, esi
jne 0x42efc7
push 0x16
push 0x48d7f8
mov ecx, edi
call fcn.00401740
jmp 0x42f2c1
mov eax, dword [esi + 0x38]
xor edi, edi
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], edi
test eax, eax
je 0x42f296
push 0x104
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00452320
sub esp, 8
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x2b0]
mov ecx, esi
push eax
call fcn.00435550
add esp, 0x18
test eax, eax
jne 0x42f331
mov edx, dword [ebp - 0x244]
lea ecx, [ebp - 0x260]
push 0x48d108
call fcn.00407720
add esp, 4
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00406520
or dword [ebp - 0x23c], 1
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x22c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x21c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24c]
cmp edx, 0x10
jb 0x42f0c4
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f0ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f348
push edx
push ecx
call fcn.00439350
add esp, 8
cmp dword [ebp - 0x27c], 0x10
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
push 0
je 0x42f226
cmp dword [ebp - 0x218], 0x10
push bind
cmovae eax, dword [ebp - 0x22c]
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f2f5
sub esp, 0xc
mov ecx, esi
call fcn.00435970
add esp, 0xc
test eax, eax
jne 0x42f2e2
nop dword [eax]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00452320
add esp, 8
lea edx, [ebp - 0x110]
mov ecx, esi
call fcn.00435b90
add esp, 4
test eax, eax
js 0x42f19a
je 0x42f1fe
push 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0
push eax
push 0x100
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f140
mov ecx, esi
call fcn.00435f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x13
push 0x48d858
mov ecx, dword [ebp - 0x238]
call fcn.00401740
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x218]
cmp edx, 0x10
jb 0x42f311
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f307
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f348
jmp 0x42f307
mov ecx, esi
call fcn.00435f30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x238]
push 0x13
push str._
call fcn.00401740
mov edi, dword [ebp - 0x240]
jmp 0x42f23b
cmp dword [ebp - 0x218], 0x10
cmovae eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, esi
call fcn.00435660
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x218]
cmp edx, 0x10
jb 0x42f283
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f279
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f348
push edx
push ecx
call fcn.00439350
add esp, 8
inc edi
mov dword [ebp - 0x240], edi
cmp edi, dword [ebp - 0x248]
jb 0x42efe0
mov byte [ebp - 0x231], 1
cmp dword [esi + 0xe0], 0
je 0x42f2ad
mov ecx, esi
call fcn.00435f30
push dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
push dword [esi + 0x1c]
call ecx
push esi
call fcn.00456331
add esp, 0xc
mov al, byte [ebp - 0x231]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043930f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x13
push 0x48d844
jmp 0x42f1af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x13
push 0x48d830
jmp 0x42f1af
push edx
push ecx
call fcn.00439350
add esp, 8
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
jmp 0x42f29d
mov ecx, dword [ebp - 0x238]
push 0x1c
push str.zip_
call fcn.00401740
jmp 0x42f29d
call fcn.004542d9
int3