Function at 0x4295fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x45d320]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 3
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
je 0x42963b
cmp dword [ebp + 0x14], 2
je 0x4296e7
cmp dword [ebp + 0x14], 1
je 0x4296e7
mov eax, 0x10000
jmp 0x429988
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x42968a
cmp eax, 0xffffffff
je 0x429652
push dword [esi]
call fcn.0042785a
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x429631
cmp edi, dword [eax + 0x10]
jge 0x429672
push eax
call fcn.00427616
jmp 0x429671
push dword [esi]
call fcn.00427657
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x42966a
push dword [esi + 0x23c]
push eax
call fcn.004291be
pop ecx
pop ecx
mov dword [esi + 4], edi
lea eax, [ebp - 0x645]
push eax
push dword [ebp + 0x10]
push ebx
push dword [esi]
call fcn.0042931d
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x4296b1
push dword [esi]
call fcn.0042785a
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x645], 0
je 0x4296c1
xor eax, eax
jmp 0x429988
test edi, edi
jle 0x4296cf
mov eax, 0x600
jmp 0x429988
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x429988
cmp dword [esi + 4], 0xffffffff
je 0x4296f5
push dword [esi]
call fcn.0042785a
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x429631
cmp edi, dword [eax + 0x10]
jge 0x42971c
push eax
call fcn.00427616
jmp 0x42971b
push dword [esi]
call fcn.00427657
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x429714
lea eax, [ebp - 0x644]
push eax
push edi
mov ecx, esi
call fcn.004279f4
test byte [ebp - 0x438], 0x10
je 0x429778
cmp dword [ebp + 0x14], 1
je 0x4296ba
movzx eax, word [ebx]
cmp eax, 0x2f
je 0x42975e
cmp eax, 0x5c
je 0x42975e
test ax, ax
je 0x429763
cmp word [ebx + 2], 0x3a
jne 0x429763
push ebx
push 0
jmp 0x42976b
push ebx
add esi, 0x244
push esi
call fcn.00427eea
pop ecx
xor eax, eax
jmp 0x429987
cmp dword [ebp + 0x14], 1
jne 0x429789
mov dword [ebp - 0x650], ebx
jmp 0x42981e
movzx eax, word [ebx]
mov edi, ebx
mov ecx, ebx
jmp 0x4297a7
cmp ax, 0x2f
je 0x42979e
cmp ax, 0x5c
jne 0x4297a1
lea edi, [ecx + 2]
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x429792
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c3ad
pop ecx
pop ecx
cmp edi, ebx
jne 0x429831
xor eax, eax
mov word [ebp - 0x20c], ax
push edi
lea eax, [ebp - 0x20c]
push eax
lea ebx, [esi + 0x244]
push ebx
lea eax, [ebp - 0x414]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00427eea
add esp, 0x1c
xor eax, eax
push eax
push dword [ebp - 0x438]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0xffffffff
jne 0x4298a0
mov eax, 0x200
jmp 0x429988
mov eax, edi
sub eax, ebx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20c], cx
cmp word [ebp - 0x20c], 0x2f
je 0x429870
cmp word [ebp - 0x20c], 0x5c
je 0x429870
cmp word [ebp - 0x20c], cx
je 0x4297c8
cmp word [ebp - 0x20a], 0x3a
jne 0x4297c8
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.00427eea
add esp, 0x18
jmp 0x4297f9
push dword [esi + 0x23c]
push dword [esi]
call fcn.004291be
cmp dword [esi + 0x240], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x4298ca
push ebx
call fcn.0042b441
pop ecx
mov dword [esi + 0x240], eax
and dword [ebp - 0x64c], 0
lea eax, [ebp - 0x645]
push eax
push ebx
push dword [esi + 0x240]
push dword [esi]
call fcn.0042931d
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x42992f
test edi, edi
js 0x429923
jle 0x429916
push 0
lea eax, [ebp - 0x654]
push eax
push edi
push dword [esi + 0x240]
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42993b
cmp byte [ebp - 0x645], 0
jne 0x429947
test edi, edi
jne 0x4298d1
mov dword [ebp - 0x64c], 0x5000000
jmp 0x429968
mov dword [ebp - 0x64c], 0x1000
jmp 0x429968
mov dword [ebp - 0x64c], 0x400
jmp 0x429968
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42997a
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.0042785a
mov eax, dword [ebp - 0x64c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bed8
leave
ret 0x10