Function at 0x45ad0e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x4f9b3c]
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 0x45ad4d
cmp dword [ebp + 0x14], 2
je 0x45adf9
cmp dword [ebp + 0x14], 1
je 0x45adf9
mov eax, 0x10000
jmp 0x45b09a
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x45ad9c
cmp eax, 0xffffffff
je 0x45ad64
push dword [esi]
call fcn.00458f47
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x45ad43
cmp edi, dword [eax + 0x10]
jge 0x45ad84
push eax
call fcn.00458d03
jmp 0x45ad83
push dword [esi]
call fcn.00458d44
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x45ad7c
push dword [esi + 0x23c]
push eax
call fcn.0045a8d0
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.0045aa2f
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x45adc3
push dword [esi]
call fcn.00458f47
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x645], 0
je 0x45add3
xor eax, eax
jmp 0x45b09a
test edi, edi
jle 0x45ade1
mov eax, 0x600
jmp 0x45b09a
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x45b09a
cmp dword [esi + 4], 0xffffffff
je 0x45ae07
push dword [esi]
call fcn.00458f47
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x45ad43
cmp edi, dword [eax + 0x10]
jge 0x45ae2e
push eax
call fcn.00458d03
jmp 0x45ae2d
push dword [esi]
call fcn.00458d44
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x45ae26
lea eax, [ebp - 0x644]
push eax
push edi
mov ecx, esi
call fcn.004590e1
test byte [ebp - 0x438], 0x10
je 0x45ae8a
cmp dword [ebp + 0x14], 1
je 0x45adcc
movzx eax, word [ebx]
cmp eax, 0x2f
je 0x45ae70
cmp eax, 0x5c
je 0x45ae70
test ax, ax
je 0x45ae75
cmp word [ebx + 2], 0x3a
jne 0x45ae75
push ebx
push 0
jmp 0x45ae7d
push ebx
add esi, 0x244
push esi
call fcn.004595d4
pop ecx
xor eax, eax
jmp 0x45b099
cmp dword [ebp + 0x14], 1
jne 0x45ae9b
mov dword [ebp - 0x650], ebx
jmp 0x45af30
movzx eax, word [ebx]
mov edi, ebx
mov ecx, ebx
jmp 0x45aeb9
cmp ax, 0x2f
je 0x45aeb0
cmp ax, 0x5c
jne 0x45aeb3
lea edi, [ecx + 2]
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x45aea4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004950c7
pop ecx
pop ecx
cmp edi, ebx
jne 0x45af43
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 0x4cb100
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004595d4
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 0x45afb2
mov eax, 0x200
jmp 0x45b09a
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 0x45af82
cmp word [ebp - 0x20c], 0x5c
je 0x45af82
cmp word [ebp - 0x20c], cx
je 0x45aeda
cmp word [ebp - 0x20a], 0x3a
jne 0x45aeda
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4cb0f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.004595d4
add esp, 0x18
jmp 0x45af0b
push dword [esi + 0x23c]
push dword [esi]
call fcn.0045a8d0
cmp dword [esi + 0x240], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x45afdc
push ebx
call fcn.004912f9
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.0045aa2f
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x45b041
test edi, edi
js 0x45b035
jle 0x45b028
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 0x45b04d
cmp byte [ebp - 0x645], 0
jne 0x45b059
test edi, edi
jne 0x45afe3
mov dword [ebp - 0x64c], 0x5000000
jmp 0x45b07a
mov dword [ebp - 0x64c], 0x1000
jmp 0x45b07a
mov dword [ebp - 0x64c], 0x400
jmp 0x45b07a
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 0x45b08c
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.00458f47
mov eax, dword [ebp - 0x64c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret 0x10