Function at 0x49d050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503b51
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x53806c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
call fcn.0042b410
add esp, 8
movzx edx, al
test edx, edx
je 0x49d340
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
call fcn.0040e280
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x364], 0
je 0x49d126
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x364]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
je 0x49d10c
push 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xa4], eax
jmp 0x49d116
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x364], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040e490
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040e230
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d231
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x20]
call fcn.0043cbd0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
push edx
call fcn.00450420
add esp, 4
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0042b220
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.004605f0
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e340
lea ecx, [ebp - 0x40]
call fcn.0040e2f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0040e2f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.0040e2f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.0040e2f0
lea ecx, [ebp - 0x28]
call fcn.0040e230
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d258
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040e2f0
jmp 0x49d340
push 0x10
call fcn.004749d0
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], 0
je 0x49d293
push 0
lea ecx, [ebp - 0x28]
call fcn.0040e230
push eax
mov ecx, dword [ebp - 0x94]
call fcn.0049d390
mov dword [ebp - 0x98], eax
jmp 0x49d29d
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xc4]
mov dword [ecx + 0x364], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x364]
call fcn.00474800
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x49d331
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x351]
test edx, edx
je 0x49d2fc
mov dword [ebp - 0x9c], 1
jmp 0x49d306
mov dword [ebp - 0x9c], 3
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x364]
call fcn.0049d3f0
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040e2f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9f48
mov esp, ebp
pop ebp
ret 4