Function at 0x4725e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x566f9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x650], esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 3
je 0x472621
cmp eax, 2
je 0x472618
cmp eax, 1
jne 0x4726ef
cmp eax, 3
jne 0x4726d3
mov ebx, dword [ebp + 8]
cmp ebx, dword [esi + 4]
je 0x472673
cmp dword [esi + 4], 0xffffffff
je 0x472637
push dword [esi]
call fcn.00474ede
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp ebx, dword [eax + 4]
jge 0x4726ef
cmp dword [eax + 0x10], ebx
jle 0x472660
push eax
call fcn.00474f42
jmp 0x47265a
push dword [esi]
call fcn.00474f81
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x10], ebx
jl 0x472653
push dword [esi + 0x23c]
push eax
call fcn.00474fe0
pop ecx
pop ecx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x645]
push eax
push dword [ebp + 0x10]
push edi
push dword [esi]
call fcn.004752a0
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x47269a
push dword [esi]
call fcn.00474ede
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x645], 0
jne 0x472730
test edi, edi
jle 0x4726c1
mov eax, 0x600
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d62a0
leave
ret 0x10
cmp edi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
cmove eax, ecx
jmp 0x4726b0
cmp dword [esi + 4], 0xffffffff
je 0x4726e1
push dword [esi]
call fcn.00474ede
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 4]
jl 0x4726f6
mov eax, 0x10000
jmp 0x4726b0
cmp dword [eax + 0x10], ebx
jle 0x472710
push eax
call fcn.00474f42
jmp 0x47270a
push dword [esi]
call fcn.00474f81
mov eax, dword [esi]
pop ecx
cmp dword [eax + 0x10], ebx
jl 0x472703
lea eax, [ebp - 0x644]
mov ecx, esi
push eax
push ebx
call fcn.00471ec1
test byte [ebp - 0x438], 0x10
je 0x472765
cmp dword [ebp + 0x14], 1
jne 0x472737
xor eax, eax
jmp 0x4726b0
movzx eax, word [edi]
cmp eax, 0x2f
je 0x472758
cmp eax, 0x5c
je 0x472758
test ax, ax
je 0x472750
cmp word [edi + 2], 0x3a
je 0x472758
add esi, 0x244
jmp 0x47275a
xor esi, esi
push edi
push esi
call fcn.00471dc1
pop ecx
pop ecx
jmp 0x472730
xor ebx, ebx
cmp dword [ebp + 0x14], 1
je 0x47288b
movzx eax, word [edi]
mov edx, edi
mov dword [ebp - 0x64c], edi
test ax, ax
je 0x4727b1
push 0x5c
pop ebx
push 0x2f
mov ecx, eax
pop esi
cmp cx, si
je 0x472793
cmp cx, bx
jne 0x47279c
lea eax, [edx + 2]
mov dword [ebp - 0x64c], eax
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x472789
mov esi, dword [ebp - 0x650]
xor ebx, ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64c]
cmp ecx, edi
jne 0x4727d6
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x472818
mov eax, ecx
sub eax, edi
and eax, 0xfffffffe
cmp eax, 0x208
jae 0x472969
xor edx, edx
mov word [ebp + eax - 0x20c], dx
mov ax, word [ebp - 0x20c]
push 0x2f
pop edx
cmp ax, dx
je 0x47283e
push 0x5c
pop edx
cmp ax, dx
je 0x47283e
test ax, ax
je 0x472818
cmp word [ebp - 0x20a], 0x3a
je 0x47283e
push ecx
lea eax, [ebp - 0x20c]
push eax
lea edi, [esi + 0x244]
push edi
lea eax, [ebp - 0x414]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x47285d
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4fcad8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edi, ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00471dc1
pop ecx
pop ecx
push ebx
push dword [ebp - 0x438]
lea eax, [ebp - 0x414]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47289a
mov eax, 0x200
jmp 0x4726b0
push dword [esi + 0x23c]
push dword [esi]
call fcn.00474fe0
pop ecx
pop ecx
cmp dword [esi + 0x240], ebx
jne 0x4728c2
push 0x4000
call fcn.004d63c4
pop ecx
mov dword [esi + 0x240], eax
lea eax, [ebp - 0x645]
push eax
push 0x4000
push dword [esi + 0x240]
push dword [esi]
call fcn.004752a0
add esp, 0x10
mov dword [ebp - 0x650], eax
cmp eax, 0xffffff96
je 0x472948
test eax, eax
js 0x47291c
jle 0x47290f
push ebx
lea ecx, [ebp - 0x64c]
push ecx
push eax
push dword [esi + 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x472923
mov eax, dword [ebp - 0x650]
cmp byte [ebp - 0x645], 0
jne 0x47292a
test eax, eax
jne 0x4728c2
mov ebx, 0x5000000
jmp 0x47294d
mov ebx, 0x400
jmp 0x47294d
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x47294d
mov ebx, 0x1000
cmp dword [ebp + 0x14], 1
je 0x47295a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.00474ede
pop ecx
mov eax, ebx
jmp 0x4726b0
call fcn.004d6691
int3