Function at 0x454e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, 3
je 0x454e41
cmp ecx, 2
je 0x454e41
cmp ecx, 1
jne 0x454f32
mov eax, dword [edi + 4]
cmp ecx, 3
jne 0x454f15
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x454e9f
cmp eax, 0xffffffff
je 0x454e60
mov ecx, dword [edi]
call fcn.00454100
mov ecx, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [ecx + 4]
jge 0x454f32
cmp dword [ecx + 0x10], esi
jle 0x454e81
call fcn.00453690
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x454e91
mov ecx, dword [edi]
call fcn.004536d0
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jl 0x454e83
mov edx, dword [edi + 0x138]
call fcn.00453ba0
mov dword [edi + 4], esi
mov ecx, dword [edi]
lea eax, [ebp - 0x339]
push eax
push dword [ebp + 0x10]
mov edx, ebx
call fcn.00453d30
mov esi, eax
add esp, 8
test esi, esi
jg 0x454ec9
mov ecx, dword [edi]
call fcn.00454100
mov dword [edi + 4], 0xffffffff
cmp byte [ebp - 0x339], 0
jne 0x455218
test esi, esi
jle 0x454ef2
pop edi
pop esi
mov eax, 0x600
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 0x10
pop edi
cmp esi, 0xffffff96
mov eax, 0x5000000
mov ecx, 0x1000
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0xffffffff
je 0x454f21
mov ecx, dword [edi]
call fcn.00454100
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [esi + 4]
jl 0x454f4a
pop edi
pop esi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x10], ecx
jle 0x454f5e
mov ecx, esi
call fcn.00453690
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x10], ecx
jge 0x454fb5
mov eax, esi
test esi, esi
je 0x454fae
cmp dword [esi + 0x18], 0
je 0x454fae
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x454fae
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.00453240
mov ecx, dword [ebp + 8]
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
mov eax, dword [edi]
mov esi, eax
cmp dword [eax + 0x10], ecx
jl 0x454f60
lea eax, [ebp - 0x338]
push eax
push ecx
mov ecx, edi
call fcn.00454570
lea ecx, [ebp - 0x334]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454fd0
sub ecx, edx
test byte [ebp - 0x230], 0x10
jne 0x4551ed
mov al, byte [ebp + ecx - 0x335]
cmp al, 0x2f
je 0x4551ed
cmp al, 0x5c
je 0x4551ed
cmp dword [ebp + 0x14], 1
je 0x4550ef
mov al, byte [ebx]
mov edx, ebx
mov ecx, ebx
test al, al
je 0x455024
cmp al, 0x2f
je 0x455019
cmp al, 0x5c
jne 0x45501c
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x455011
lea esi, [ebp - 0x108]
mov ecx, ebx
sub esi, ebx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x455030
cmp edx, ebx
jne 0x455049
mov byte [ebp - 0x108], al
jmp 0x45507b
mov eax, edx
sub eax, ebx
cmp eax, 0x104
jae 0x45522d
mov byte [ebp + eax - 0x108], 0
mov al, byte [ebp - 0x108]
cmp al, 0x2f
je 0x4550a1
cmp al, 0x5c
je 0x4550a1
test al, al
je 0x45507b
cmp byte [ebp - 0x107], 0x3a
je 0x4550a1
push edx
lea eax, [ebp - 0x108]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x4550c0
push edx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor esi, esi
lea edx, [ebp - 0x108]
mov ecx, esi
call fcn.00454d00
push 0
push dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45510c
pop edi
pop esi
mov eax, 0x200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [edi + 0x138]
mov ecx, dword [edi]
call fcn.00453ba0
cmp dword [edi + 0x13c], 0
jne 0x455140
push 0x4000
call fcn.00460a14
add esp, 4
mov dword [edi + 0x13c], eax
nop word [eax + eax]
mov edx, dword [edi + 0x13c]
lea eax, [ebp - 0x339]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.00453d30
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x4551bf
test esi, esi
js 0x455191
jle 0x455184
push 0
lea eax, [ebp - 0x340]
push eax
push esi
push dword [edi + 0x13c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455198
cmp byte [ebp - 0x339], 0
jne 0x45519f
test esi, esi
jne 0x455140
mov esi, 0x5000000
jmp 0x4551c4
mov esi, 0x400
jmp 0x4551c4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor esi, esi
jmp 0x4551c4
mov esi, 0x1000
cmp dword [ebp + 0x14], 1
je 0x4551d1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.00454100
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 1
je 0x455218
mov al, byte [ebx]
cmp al, 0x2f
je 0x45520f
cmp al, 0x5c
je 0x45520f
test al, al
je 0x455207
cmp byte [ebx + 1], 0x3a
je 0x45520f
lea ecx, [edi + 0x140]
jmp 0x455211
xor ecx, ecx
mov edx, ebx
call fcn.00454d00
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret 0x10
call fcn.004607de
int3