Function at 0x45c0fb
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0xf40
lea ebp, [esp - 4]
mov eax, dword [0x4f2be0]
xor eax, ebp
mov dword [ebp + 0xf40], eax
push 0x2c
mov eax, 0x4b1d2b
call fcn.00475a5f
mov esi, ecx
call fcn.0045a4ed
mov ecx, eax
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
jne 0x45c138
xor eax, eax
jmp 0x45c31c
call fcn.0045e3b3
mov edi, eax
cmp edi, ebx
je 0x45c131
mov ecx, dword [ebp - 0x1c]
call fcn.0045e3af
cmp eax, ebx
je 0x45c131
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x45c131
mov ecx, esi
call fcn.0045a512
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x45c131
lea ecx, [ebp - 0x38]
call fcn.00447fd1
push 0xbf
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00432299
push dword [eax]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004028fb
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004029d4
xor eax, eax
push 0x206
mov word [ebp + 0xd38], ax
lea eax, [ebp + 0xd3a]
push ebx
push eax
call fcn.00474a10
xor eax, eax
push 0x206
mov word [ebp + 0xb30], ax
lea eax, [ebp + 0xb32]
push ebx
push eax
call fcn.00474a10
mov eax, dword [edi]
add esp, 0x18
push 0x104
lea ecx, [ebp + 0xb30]
push ecx
push edi
call dword [eax + 0x18]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
jmp 0x45c2c5
cmp dword [ebp - 0x20], ebx
je 0x45c2c5
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00474a10
add esp, 0xc
lea eax, [ebp + 0xd38]
push eax
lea eax, [ebp + 0xb30]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.004028fb
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x3443
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c33f
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp + 0x800]
push edx
lea edx, [ebp + 0xd38]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp + 0x800]
push edx
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x48]
cmp dword [ebp + 0xa9c], ebx
je 0x45c2a3
lea eax, [ebp + 0xa9c]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0xa90], ebx
je 0x45c2b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push eax
call dword [ecx + 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0x104
lea ecx, [ebp + 0xd38]
push ecx
push edi
call dword [eax + 0xc]
test eax, eax
jne 0x45c1fa
push str.pFileMgr__EnumFile_RETURN_FALSE_
call fcn.00404dac
mov eax, dword [edi]
pop ecx
push edi
call dword [eax + 0x1c]
mov edi, eax
lea eax, [esi + 0x5c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00447ff7
xor eax, eax
cmp edi, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xf40]
xor ecx, ebp
call fcn.00474a8a
add ebp, 0xf44
leave
ret
push str.extractfile
lea ecx, [ebp - 0x10]
call fcn.00402675
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403b59
push dword [ebp - 0x10]
push ebx
push 0x9d
call fcn.00402f1e
mov ecx, eax
call fcn.00402faf
lea eax, [ebp]
push eax
push str._s_File_Not_Found_r_n
call fcn.00404dac
pop ecx
pop ecx
push 0x4f8ce0
lea ecx, [ebp - 0x18]
call fcn.004029af
push 0x95
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00402631
push 4
pop edi
push 0x4bbddc
lea eax, [ebp + 0xaac]
push 0x20
push eax
mov dword [ebp + 0xaa8], edi
call fcn.00477775
push 0x4baf0c
lea eax, [ebp + 0xaf0]
push 0x20
push eax
mov dword [ebp + 0xaec], 2
call fcn.00477775
add esp, 0x18
push 0x3ea
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x96
lea ecx, [ebp - 0x24]
call fcn.00432299
mov eax, dword [eax]
push ebx
push ebx
push ebx
push 0x30
lea ecx, [ebp + 0xaa8]
push ecx
mov ecx, dword [ebp - 0x1c]
push 2
push eax
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
push dword [esi + 4]
call fcn.0045f685
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
call fcn.004029d4
cmp dword [ebp - 0x1c], edi
jne 0x45c435
call fcn.004472e0
push ebx
push ebx
push 0x3442
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
lea ecx, [ebp - 0x38]
call fcn.00447ff7
or eax, 0xffffffff
jmp 0x45c31c