Function at 0x456d68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x5154b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x456d90
mov ecx, dword [edi]
call fcn.004565a5
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jl 0x456db6
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a41df
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x456dc9
call fcn.00456017
jmp 0x456dc9
mov ecx, dword [edi]
call fcn.0045604e
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x456dc2
lea eax, [ebp - 0x348]
mov ecx, edi
push eax
push ebx
call fcn.004566ba
test byte [ebp - 0x240], 0x10
mov al, byte [esi]
je 0x456e11
cmp al, 0x2f
je 0x456e04
cmp al, 0x5c
je 0x456e04
test al, al
je 0x456dfc
cmp byte [esi + 1], 0x3a
je 0x456e04
lea ecx, [edi + 0x140]
jmp 0x456e06
xor ecx, ecx
mov edx, esi
call fcn.00456c64
xor eax, eax
jmp 0x456da3
mov dword [ebp - 0x350], esi
mov ebx, esi
mov ecx, esi
test al, al
je 0x456e37
cmp al, 0x2f
je 0x456e27
cmp al, 0x5c
jne 0x456e2a
lea ebx, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x456e1f
mov dword [ebp - 0x350], ebx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456e3c
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004a7e96
add esp, 0xc
cmp ebx, esi
jne 0x456e67
xor ebx, ebx
mov byte [ebp - 0x110], bl
jmp 0x456e9a
mov eax, ebx
sub eax, esi
cmp eax, 0x104
jae 0x456ff2
xor ebx, ebx
mov byte [ebp + eax - 0x110], bl
mov al, byte [ebp - 0x110]
cmp al, 0x2f
je 0x456ec7
cmp al, 0x5c
je 0x456ec7
test al, al
je 0x456e9a
cmp byte [ebp - 0x10f], 0x3a
je 0x456ec7
push dword [ebp - 0x350]
lea eax, [ebp - 0x110]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x218]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov ecx, esi
jmp 0x456eeb
push dword [ebp - 0x350]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push 0x4ef4b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ecx, ecx
lea edx, [ebp - 0x110]
call fcn.00456c64
push ebx
push dword [ebp - 0x240]
lea eax, [ebp - 0x218]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
jne 0x456f28
mov eax, 0x200
jmp 0x456da3
mov edx, dword [edi + 0x138]
mov ecx, dword [edi]
call fcn.00456234
cmp dword [edi + 0x13c], ebx
jne 0x456f4e
push 0x4000
call fcn.0048f9a2
pop ecx
mov dword [edi + 0x13c], eax
mov edx, dword [edi + 0x13c]
lea eax, [ebp - 0x349]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.00456384
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffff96
je 0x456fd3
test esi, esi
js 0x456fa2
jle 0x456f95
push ebx
lea eax, [ebp - 0x354]
push eax
push esi
push dword [edi + 0x13c]
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456fa9
cmp byte [ebp - 0x349], 0
jne 0x456fb0
test esi, esi
jne 0x456f4e
mov ebx, 0x5000000
jmp 0x456fd8
mov ebx, 0x400
jmp 0x456fd8
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x456fd8
mov ebx, 0x1000
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.004565a5
mov eax, ebx
jmp 0x456da3
call fcn.004a6d2c
int3