Function at 0x45c450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x481e08]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x684], ecx
cmp dword [ebp + 0x14], 3
je 0x45c485
cmp dword [ebp + 0x14], 2
je 0x45c485
cmp dword [ebp + 0x14], 1
je 0x45c485
mov eax, 0x10000
jmp 0x45ca9e
cmp dword [ebp + 0x14], 3
jne 0x45c5e2
mov eax, dword [ebp - 0x684]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x45c553
mov edx, dword [ebp - 0x684]
cmp dword [edx + 4], 0xffffffff
je 0x45c4be
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
push ecx
call fcn.0045aaa0
add esp, 4
mov edx, dword [ebp - 0x684]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x45c4e5
mov eax, 0x10000
jmp 0x45ca9e
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x45c506
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
push ecx
call fcn.0045b050
add esp, 4
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x45c529
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
push eax
call fcn.0045af90
add esp, 4
jmp 0x45c506
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
push ecx
call fcn.0045bf90
add esp, 8
mov edx, dword [ebp - 0x684]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x241]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx]
push edx
call fcn.0045ab70
add esp, 0x10
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jg 0x45c5a0
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
push ecx
call fcn.0045aaa0
add esp, 4
mov edx, dword [ebp - 0x684]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x241]
test eax, eax
je 0x45c5b2
xor eax, eax
jmp 0x45ca9e
cmp dword [ebp - 0x240], 0
jle 0x45c5c5
mov eax, 0x600
jmp 0x45ca9e
cmp dword [ebp - 0x240], 0xffffff96
jne 0x45c5d8
mov eax, 0x1000
jmp 0x45ca9e
mov eax, 0x5000000
jmp 0x45ca9e
mov ecx, dword [ebp - 0x684]
cmp dword [ecx + 4], 0xffffffff
je 0x45c5ff
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
push eax
call fcn.0045aaa0
add esp, 4
mov ecx, dword [ebp - 0x684]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x45c626
mov eax, 0x10000
jmp 0x45ca9e
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x45c647
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
push eax
call fcn.0045b050
add esp, 4
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x45c66a
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx]
push edx
call fcn.0045af90
add esp, 4
jmp 0x45c647
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x684]
call fcn.0045b590
mov edx, dword [ebp - 0x2c]
and edx, 0x10
je 0x45c73d
cmp dword [ebp + 0x14], 1
jne 0x45c699
xor eax, eax
jmp 0x45ca9e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x45c6e6
mov eax, dword [ebp - 0x248]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x45c6e6
mov edx, dword [ebp - 0x248]
movzx eax, word [edx]
test eax, eax
je 0x45c6da
mov ecx, dword [ebp - 0x248]
movzx edx, word [ecx + 2]
cmp edx, 0x3a
je 0x45c6e6
mov dword [ebp - 0x688], 0
jmp 0x45c6f0
mov dword [ebp - 0x688], 1
mov al, byte [ebp - 0x688]
mov byte [ebp - 0x242], al
movzx ecx, byte [ebp - 0x242]
test ecx, ecx
je 0x45c71a
mov edx, dword [ebp - 0x248]
push edx
push 0
call fcn.004556e0
add esp, 8
jmp 0x45c736
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x684]
add ecx, 0x244
push ecx
call fcn.004556e0
add esp, 8
xor eax, eax
jmp 0x45ca9e
cmp dword [ebp + 0x14], 1
jne 0x45c74e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
jmp 0x45c903
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x66c], edx
mov eax, dword [ebp - 0x66c]
movzx ecx, word [eax]
test ecx, ecx
je 0x45c7b8
mov edx, dword [ebp - 0x66c]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x45c798
mov ecx, dword [ebp - 0x66c]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x45c7a7
mov eax, dword [ebp - 0x66c]
add eax, 2
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x66c]
add ecx, 2
mov dword [ebp - 0x66c], ecx
jmp 0x45c76f
mov edx, dword [ebp - 0x250]
push edx
push 0x104
lea eax, [ebp - 0x668]
push eax
call fcn.0043db0d
add esp, 0xc
mov ecx, dword [ebp - 0x254]
cmp ecx, dword [ebp - 0x250]
jne 0x45c7ec
xor edx, edx
mov word [ebp - 0x668], dx
jmp 0x45c804
mov eax, dword [ebp - 0x254]
sub eax, dword [ebp - 0x250]
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x668], cx
movzx edx, word [ebp - 0x668]
cmp edx, 0x2f
je 0x45c83f
movzx eax, word [ebp - 0x668]
cmp eax, 0x5c
je 0x45c83f
movzx ecx, word [ebp - 0x668]
test ecx, ecx
je 0x45c833
movzx edx, word [ebp - 0x666]
cmp edx, 0x3a
je 0x45c83f
mov dword [ebp - 0x68c], 0
jmp 0x45c849
mov dword [ebp - 0x68c], 1
mov al, byte [ebp - 0x68c]
mov byte [ebp - 0x249], al
movzx ecx, byte [ebp - 0x249]
test ecx, ecx
je 0x45c896
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x668]
push eax
push 0x47701c
lea ecx, [ebp - 0x460]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x668]
push edx
push 0
call fcn.004556e0
add esp, 8
jmp 0x45c8e2
mov eax, dword [ebp - 0x254]
push eax
lea ecx, [ebp - 0x668]
push ecx
mov edx, dword [ebp - 0x684]
add edx, 0x244
push edx
push str._s_s_s
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x668]
push ecx
mov edx, dword [ebp - 0x684]
add edx, 0x244
push edx
call fcn.004556e0
add esp, 8
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x45c913
mov eax, 0x200
jmp 0x45ca9e
mov edx, dword [ebp - 0x684]
mov eax, dword [edx + 0x23c]
push eax
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx]
push edx
call fcn.0045bf90
add esp, 8
mov eax, dword [ebp - 0x684]
cmp dword [eax + 0x240], 0
jne 0x45c965
push 0x4000
call fcn.0040b9d4
add esp, 4
mov dword [ebp - 0x680], eax
mov ecx, dword [ebp - 0x684]
mov edx, dword [ebp - 0x680]
mov dword [ecx + 0x240], edx
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x23c], 0
jne 0x45ca4b
lea eax, [ebp - 0x671]
push eax
push 0x4000
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx + 0x240]
push edx
mov eax, dword [ebp - 0x684]
mov ecx, dword [eax]
push ecx
call fcn.0045ab70
add esp, 0x10
mov dword [ebp - 0x670], eax
cmp dword [ebp - 0x670], 0xffffff96
jne 0x45c9c4
mov dword [ebp - 0x23c], 0x1000
jmp 0x45ca4b
cmp dword [ebp - 0x670], 0
jge 0x45c9d9
mov dword [ebp - 0x23c], 0x5000000
jmp 0x45ca4b
cmp dword [ebp - 0x670], 0
jle 0x45ca24
push 0
lea edx, [ebp - 0x67c]
push edx
mov eax, dword [ebp - 0x670]
push eax
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx + 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x678], eax
cmp dword [ebp - 0x678], 0
jne 0x45ca24
mov dword [ebp - 0x23c], 0x400
jmp 0x45ca4b
movzx ecx, byte [ebp - 0x671]
test ecx, ecx
je 0x45ca31
jmp 0x45ca4b
cmp dword [ebp - 0x670], 0
jne 0x45ca46
mov dword [ebp - 0x23c], 0x5000000
jmp 0x45ca4b
jmp 0x45c96f
cmp dword [ebp - 0x23c], 0
jne 0x45ca6a
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x45ca7a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x684]
mov edx, dword [ecx]
push edx
call fcn.0045aaa0
add esp, 4
cmp dword [ebp - 0x23c], 0
je 0x45ca9c
mov eax, dword [ebp - 0x23c]
jmp 0x45ca9e
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00439a7d
mov esp, ebp
pop ebp
ret 0x10