Function at 0x42f6de
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov esi, ecx
cmp ebx, 3
je 0x42f710
cmp ebx, 2
je 0x42f7b8
cmp ebx, 1
je 0x42f7b8
mov eax, 0x10000
jmp 0x42fa38
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x42f75f
cmp eax, 0xffffffff
je 0x42f727
push dword [esi]
call fcn.0042d9b7
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x42f706
cmp edi, dword [eax + 0x10]
jge 0x42f747
push eax
call fcn.0042d773
jmp 0x42f746
push dword [esi]
call fcn.0042d7b4
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x42f73f
push dword [esi + 0x23c]
push eax
call fcn.0042f1ba
pop ecx
pop ecx
mov dword [esi + 4], edi
lea eax, [ebp + 0xf]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call fcn.0042f319
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x42f785
push dword [esi]
call fcn.0042d9b7
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp + 0xf], 0
je 0x42f792
xor eax, eax
jmp 0x42fa38
test edi, edi
jle 0x42f7a0
mov eax, 0x600
jmp 0x42fa38
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x42fa38
cmp dword [esi + 4], 0xffffffff
je 0x42f7c6
push dword [esi]
call fcn.0042d9b7
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x42f706
cmp edi, dword [eax + 0x10]
jge 0x42f7ed
push eax
call fcn.0042d773
jmp 0x42f7ec
push dword [esi]
call fcn.0042d7b4
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x42f7e5
lea eax, [ebp - 0x43c]
push eax
push edi
mov ecx, esi
call fcn.0042db4d
test byte [ebp - 0x230], 0x10
je 0x42f84b
cmp ebx, 1
je 0x42f78b
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
cmp eax, 0x2f
je 0x42f831
cmp eax, 0x5c
je 0x42f831
test ax, ax
je 0x42f836
cmp word [ecx + 2], 0x3a
jne 0x42f836
push ecx
push 0
jmp 0x42f83e
push ecx
add esi, 0x244
push esi
call fcn.0042f5fd
pop ecx
xor eax, eax
jmp 0x42fa37
cmp ebx, 1
jne 0x42f858
mov eax, dword [ebp + 0xc]
jmp 0x42f8f0
mov edi, dword [ebp + 0xc]
movzx eax, word [edi]
mov ebx, edi
mov ecx, edi
jmp 0x42f879
cmp ax, 0x2f
je 0x42f870
cmp ax, 0x5c
jne 0x42f873
lea ebx, [ecx + 2]
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x42f864
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0047f243
add esp, 0xc
cmp ebx, edi
jne 0x42f902
xor eax, eax
mov word [ebp - 0x20c], ax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x244]
push edi
lea eax, [ebp - 0x644]
push 0x4a98bc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0042f5fd
add esp, 0x1c
xor eax, eax
push eax
push dword [ebp - 0x230]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x42f971
mov eax, 0x200
jmp 0x42fa38
mov eax, ebx
sub eax, edi
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
cmp word [ebp - 0x20c], 0x2f
je 0x42f941
cmp word [ebp - 0x20c], 0x5c
je 0x42f941
cmp word [ebp - 0x20c], cx
je 0x42f8a0
cmp word [ebp - 0x20a], 0x3a
jne 0x42f8a0
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x644]
push 0x4a98b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0042f5fd
add esp, 0x18
jmp 0x42f8d1
push dword [esi + 0x23c]
push dword [esi]
call fcn.0042f1ba
cmp dword [esi + 0x240], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x42f99b
push ebx
call fcn.0047d5d0
pop ecx
mov dword [esi + 0x240], eax
and dword [ebp + 0x10], 0
lea eax, [ebp + 0xf]
push eax
push ebx
push dword [esi + 0x240]
push dword [esi]
call fcn.0042f319
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x42f9ee
test edi, edi
js 0x42f9e5
jle 0x42f9db
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0x240]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f9f7
cmp byte [ebp + 0xf], 0
jne 0x42fa00
test edi, edi
jne 0x42f99f
mov dword [ebp + 0x10], 0x5000000
jmp 0x42fa1e
mov dword [ebp + 0x10], 0x1000
jmp 0x42fa1e
mov dword [ebp + 0x10], 0x400
jmp 0x42fa1e
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42fa2d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.0042d9b7
mov eax, dword [ebp + 0x10]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10