Function at 0x45c510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d691
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x45c], ecx
mov ecx, dword [ebp - 0x45c]
add ecx, 0x878
call fcn.004a6180
mov ecx, dword [ebp - 0x45c]
cmp dword [ecx + 0x8dc], eax
jae 0x45c574
mov edx, dword [ebp - 0x45c]
mov eax, dword [edx + 0x8dc]
mov dword [ebp - 0x460], eax
jmp 0x45c58b
mov ecx, dword [ebp - 0x45c]
add ecx, 0x878
call fcn.004a6180
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x45c5a1
xor eax, eax
jmp 0x45c949
mov dword [ebp - 0x18], 0
push 0x48
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x454], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x454], 0
je 0x45c5db
mov ecx, dword [ebp - 0x454]
call fcn.00456730
mov dword [ebp - 0x464], eax
jmp 0x45c5e5
mov dword [ebp - 0x464], 0
mov edx, dword [ebp - 0x464]
mov dword [ebp - 0x450], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x450]
push eax
lea ecx, [ebp - 0x10]
call fcn.0045d9e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x45c]
add ecx, 0x878
call fcn.004368a0
push 0x104
lea ecx, [ebp - 0x20]
call fcn.00475490
mov ecx, eax
call fcn.004dfdf0
push eax
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x45c]
add ecx, 0x8c0
call fcn.004369c0
jmp 0x45c669
lea ecx, [ebp - 0x20]
call fcn.00461590
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x45c6aa
lea ecx, [ebp - 0x20]
call fcn.00475490
mov ecx, eax
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
mov ecx, eax
call fcn.00460870
lea ecx, [ebp - 0x20]
call fcn.00475490
push eax
mov ecx, dword [ebp - 0x45c]
add ecx, 0x8c0
call fcn.004368d0
jmp 0x45c658
mov dword [ebp - 0x444], 0
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x444]
push ecx
mov edx, dword [ebp - 0x468]
push edx
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
call edx
cmp dword [ebp - 0x444], 0
jne 0x45c6eb
jmp 0x45c60e
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
mov ecx, eax
call fcn.00461040
mov ecx, dword [ebp - 0x45c]
add ecx, 0x890
call fcn.004a6180
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x448], 0
jmp 0x45c733
mov eax, dword [ebp - 0x448]
add eax, 1
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
cmp ecx, dword [ebp - 0x28]
jae 0x45c77b
mov edx, dword [ebp - 0x448]
push edx
mov ecx, dword [ebp - 0x45c]
add ecx, 0x890
call fcn.0045fcc0
mov ecx, eax
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
mov ecx, eax
call fcn.004610d0
add eax, dword [ebp - 0x440]
mov dword [ebp - 0x440], eax
jmp 0x45c724
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
add eax, 0xc
mov ecx, eax
call fcn.00475500
movzx eax, al
test eax, eax
je 0x45c799
jmp 0x45c60e
mov ecx, dword [ebp - 0x45c]
mov edx, dword [ecx + 0x11a0]
push edx
mov eax, dword [ebp - 0x45c]
add eax, 0x118c
push eax
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
mov ecx, eax
call fcn.00456ee0
mov ecx, dword [ebp - 0x45c]
cmp dword [ecx + 0x1194], 3
jne 0x45c7ec
mov edx, dword [ebp - 0x45c]
add edx, 0x1198
push edx
lea ecx, [ebp - 0x10]
call fcn.004dfdf0
mov ecx, eax
call fcn.00457110
mov eax, dword [ebp - 0x45c]
add eax, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea ecx, [ebp - 0x43c]
push ecx
mov edx, dword [ebp - 0x45c]
add edx, 8
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x45c]
add eax, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c89f
mov ecx, dword [ebp - 0x45c]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x44c], eax
mov edx, 0x104
sub edx, dword [ebp - 0x44c]
push edx
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x45c]
lea eax, [edx + ecx*2 + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
jne 0x45c89d
mov dword [ebp - 0x24], 0
jmp 0x45c89f
jmp 0x45c83c
cmp dword [ebp - 0x24], 0
jne 0x45c8aa
jmp 0x45c60e
mov ecx, dword [ebp - 0x45c]
add ecx, 0x11a4
call fcn.004dfdf0
test eax, eax
je 0x45c8d0
mov ecx, dword [ebp - 0x45c]
add ecx, 0x11a4
call fcn.004dfe00
mov ecx, dword [ebp - 0x45c]
add ecx, 0x11a4
call fcn.00476080
push eax
lea ecx, [ebp - 0x10]
call fcn.0045d9a0
mov ecx, dword [ebp - 0x45c]
add ecx, 0x11a4
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x45c]
call fcn.0045d2d0
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x458], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00496090
mov eax, dword [ebp - 0x458]
jmp 0x45c949
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 4