Function at 0x4d5110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574b59
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
mov ecx, dword [ebp - 0x268]
call fcn.004d54c0
test eax, eax
jne 0x4d5191
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.0049c1a0
add esp, 0x10
push 0
push 0
push 0x507
mov edx, dword [ebp - 0x268]
mov ecx, dword [edx + 0x20]
add ecx, 4
call fcn.0043c480
mov eax, 1
jmp 0x4d53c3
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x268]
add ecx, 4
call fcn.004368a0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], 0
jmp 0x4d51d7
push 0
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004cc4d0
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp - 0x268]
add ecx, 4
call fcn.00497a70
push eax
lea ecx, [ebp - 0x14]
call fcn.0044ff40
movzx edx, al
test edx, edx
je 0x4d5386
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x20]
call fcn.004a1b00
test eax, eax
je 0x4d5224
mov ecx, dword [ebp - 0x268]
mov dword [ecx + 0x50], 1
jmp 0x4d5386
lea ecx, [ebp - 0x14]
call fcn.00475490
mov ecx, eax
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d5240
jmp 0x4d51c6
push 0
lea ecx, [ebp - 0x14]
call fcn.00475490
mov ecx, eax
call fcn.004dfdf0
push eax
lea ecx, [ebp - 0x254]
call fcn.00438b80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401420
mov byte [ebp - 4], 1
push 1
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00403220
push eax
lea ecx, [ebp - 0x254]
call fcn.00438c40
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x80004001
jne 0x4d52b9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.004393d0
jmp 0x4d51c6
cmp dword [ebp - 0x30], 0
jge 0x4d52f6
mov edx, dword [ebp - 0x268]
mov eax, dword [edx + 0x1c]
cmp dword [eax + 0x220], 0
jne 0x4d52f4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.004393d0
jmp 0x4d51c6
jmp 0x4d5363
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx + 0x1c]
cmp dword [edx + 0x21c], 0
je 0x4d5323
lea ecx, [ebp - 0x14]
call fcn.00475490
mov ecx, eax
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x268]
call fcn.004d5e10
lea ecx, [ebp - 0x14]
call fcn.00475490
mov ecx, eax
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x268]
call fcn.004d5bd0
lea ecx, [ebp - 0x34]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x268]
call fcn.004d5710
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x268]
call fcn.004d5d30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.004393d0
jmp 0x4d51c6
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x1c]
cmp dword [ecx + 0x228], 0
je 0x4d53a7
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x268]
call fcn.004d5500
push 0
push 0
push 0x507
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax + 0x20]
add ecx, 4
call fcn.0043c480
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret