Function at 0x45bfcb
Capabilities:
Write file on windows

Disassembly:
push 0xf28
mov eax, 0x5a29a7
call fcn.00587224
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, edx
mov edi, ecx
mov dword [ebp - 0xf34], edi
mov dword [ebp - 0xf30], eax
mov dword [ebp - 0xf2c], ebx
cmp esi, ebx
je 0x45c2bc
cmp word [esi], bx
je 0x45c2bc
cmp eax, ebx
je 0x45c2bc
cmp word [eax], bx
je 0x45c2bc
xor eax, eax
push 0x7e
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push ebx
push eax
call fcn.005847c0
add esp, 0xc
push esi
push 0x5c86e0
lea eax, [ebp - 0x94]
push 0x3f
push eax
call fcn.0057d72e
mov esi, 0x5bd37c
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0057e56c
add esp, 0x18
jmp 0x45c072
push 0x5f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0057e56c
pop ecx
pop ecx
cmp eax, ebx
jne 0x45c05d
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x4a4], ax
lea eax, [ebp - 0x4a2]
push ebx
push eax
call fcn.005847c0
lea eax, [edi + 0xc8]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x45c0a6
mov eax, dword [eax + 4]
jmp 0x45c0a9
add eax, 4
lea ecx, [ebp - 0x94]
push ecx
push eax
lea eax, [ebp - 0x4a4]
push eax
call dword [0x5b14d0]
push str..lnk
push 0x104
lea edi, [ebp - 0x4a4]
call fcn.00404d5a
mov eax, edi
mov edi, dword [0x5b14d8]
push eax
call edi
test eax, eax
jne 0x45c2b4
push esi
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x29a]
push ebx
push eax
call fcn.005847c0
add esp, 0xc
push str.game.ico
push str.ico_newmv
call fcn.00403ab6
push eax
push 0x5d6994
lea eax, [ebp - 0x29c]
push 0x103
push eax
call fcn.0057d72e
add esp, 0x18
lea eax, [ebp - 0x29c]
push eax
call edi
test eax, eax
jne 0x45c26d
lea esi, [ebp - 0xf24]
call fcn.00508634
push str.BINARY
push str.IDR_NEWMV_ZIP
mov dword [ebp - 4], ebx
push dword [0x621c1c]
mov ecx, esi
call fcn.005086e6
test eax, eax
je 0x45c25e
mov eax, esi
push eax
call fcn.0050879f
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0xf28], eax
jle 0x45c253
push 0x22c
lea eax, [ebp - 0x6d0]
push ebx
push eax
mov dword [ebp - 0x6d4], ebx
call fcn.005847c0
add esp, 0xc
push esi
lea edx, [ebp - 0x6d4]
lea ecx, [ebp - 0xf24]
call fcn.005087f3
test eax, eax
je 0x45c253
test byte [ebp - 0x4c8], 0x10
jne 0x45c1d2
lea eax, [ebp - 0x6d0]
push str.game.ico
push eax
call fcn.0057d999
pop ecx
pop ecx
test eax, eax
je 0x45c1dd
inc esi
cmp esi, dword [ebp - 0xf28]
jl 0x45c17d
jmp 0x45c253
push dword [ebp - 0x6d4]
lea esi, [ebp - 0xf24]
call fcn.005088e0
mov esi, eax
cmp esi, ebx
je 0x45c253
push 5
lea eax, [ebp - 0x29c]
push eax
push ebx
push ebx
call dword [0x5b1428]
push 0x5cba40
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0xf28]
push eax
mov dword [ebp - 0xf28], ebx
call fcn.0058138c
add esp, 0xc
test eax, eax
jne 0x45c24c
push dword [ebp - 0xf28]
push dword [ebp - 0x4a8]
push 1
push esi
call fcn.00581b18
push dword [ebp - 0xf28]
call fcn.00581c11
add esp, 0x14
push esi
call fcn.0057db06
pop ecx
lea ecx, [ebp - 0xf24]
call fcn.0050877f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf24]
call fcn.005086b3
lea eax, [ebp - 0x29c]
push eax
call edi
test eax, eax
je 0x45c2b4
mov eax, dword [ebp - 0xf34]
cmp dword [eax + 0x54], 8
jb 0x45c28b
mov ebx, dword [eax + 0x40]
jmp 0x45c28e
lea ebx, [eax + 0x40]
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0xf30]
lea eax, [ebp - 0x4a4]
push eax
call fcn.004259b5
add esp, 0xc
mov dword [ebp - 0xf2c], 1
mov eax, dword [ebp - 0xf2c]
jmp 0x45c2be
xor eax, eax
call fcn.005872a7
ret 4