Function at 0x45f00e
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b492e
mov eax, dword fs:[0]
push eax
sub esp, 0xed0
mov eax, dword [0x61dc40]
xor eax, esp
mov dword [esp + 0xec8], eax
push ebx
push esi
push edi
mov eax, dword [0x61dc40]
xor eax, esp
push eax
lea eax, [esp + 0xee0]
mov dword fs:[0], eax
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [esp + 0xcd0], ax
lea eax, [esp + 0xcd2]
push edi
push eax
mov ebx, ecx
mov dword [esp + 0x20], edi
call fcn.00596530
lea eax, [ebx + 0xc8]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x45f088
mov eax, dword [eax + 4]
jmp 0x45f08b
add eax, 4
push 0x5eb104
push eax
lea eax, [esp + 0xcd4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0xccc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f30c
cmp dword [ebp + 8], edi
jne 0x45f0e7
cmp dword [ebx + 0x54], 8
jb 0x45f0c5
mov ebx, dword [ebx + 0x40]
jmp 0x45f0c8
add ebx, 0x40
push edi
lea eax, [esp + 0xcd0]
push edi
push eax
call fcn.0042678e
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x45f30c
xor eax, eax
push esi
mov word [esp + 0xac8], ax
lea eax, [esp + 0xaca]
push edi
push eax
call fcn.00596530
add esp, 0xc
push str.main.ico
push str.ico_newmv
call fcn.004040a8
push eax
push 0x5e99c8
lea eax, [esp + 0xad4]
push 0x103
push eax
call fcn.0058f42f
add esp, 0x18
xor eax, eax
push 9
mov word [esp + 0xaa0], ax
pop ecx
lea edi, [esp + 0xa9e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 1]
cmp ecx, 8
ja 0x45f16a
push eax
push str._d.ico
lea eax, [esp + 0xaa4]
push 0x13
push eax
call fcn.0058f42f
add esp, 0x10
jmp 0x45f181
push 0x5eb15c
lea eax, [esp + 0xaa0]
push 0x13
push eax
call fcn.0058f42f
add esp, 0xc
lea ecx, [esp + 0xac4]
call fcn.0047611f
lea esi, [esp + 0x24c]
call fcn.0051a0a5
push str.BINARY
xor esi, esi
push str.IDR_NEWMV_ZIP
mov dword [esp + 0xef0], esi
push dword [0x639508]
lea ecx, [esp + 0x258]
call fcn.0051a157
test eax, eax
je 0x45f2b6
lea eax, [esp + 0x24c]
push eax
call fcn.0051a210
mov edi, eax
test edi, edi
jle 0x45f2aa
and dword [esp + 0x1c], 0
push 0x22c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00596530
add esp, 0xc
push esi
lea edx, [esp + 0x20]
lea ecx, [esp + 0x250]
call fcn.0051a264
test eax, eax
je 0x45f2aa
test byte [esp + 0x228], 0x10
jne 0x45f231
lea eax, [esp + 0xa9c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0058f69a
pop ecx
pop ecx
test eax, eax
je 0x45f238
inc esi
cmp esi, edi
jl 0x45f1dd
jmp 0x45f2aa
push dword [esp + 0x1c]
lea esi, [esp + 0x250]
call fcn.0051a351
mov esi, eax
test esi, esi
je 0x45f2aa
push 5
lea eax, [esp + 0xac8]
push eax
xor edi, edi
push edi
push edi
call dword [sym.imp.SHELL32.dll_SHPathPrepareForWriteW]
push 0x5dec60
lea eax, [esp + 0xac8]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edi
call fcn.0059308d
add esp, 0xc
test eax, eax
jne 0x45f2a3
push dword [esp + 0x18]
push dword [esp + 0x24c]
push 1
push esi
call fcn.00593819
push dword [esp + 0x28]
call fcn.00593912
add esp, 0x14
push esi
call fcn.0058f807
pop ecx
lea ecx, [esp + 0x24c]
call fcn.0051a1f0
lea eax, [esp + 0xac4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f2f8
cmp dword [ebx + 0x54], 8
jb 0x45f2d3
mov ebx, dword [ebx + 0x40]
jmp 0x45f2d6
add ebx, 0x40
lea eax, [esp + 0xac4]
push eax
lea eax, [esp + 0xcd0]
push 0
push eax
call fcn.0042678e
add esp, 0xc
mov dword [esp + 0x14], 1
or dword [esp + 0xee8], 0xffffffff
lea ecx, [esp + 0x24c]
call fcn.0051a124
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xee0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xec8]
xor ecx, esp
call fcn.0058f3cf
mov esp, ebp
pop ebp
ret 8