Function at 0x4e0d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52275c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.004084c0
movzx eax, al
test eax, eax
jne 0x4e11d0
lea ecx, [ebp - 0x18]
call fcn.0040c630
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040c630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004084c0
movzx ecx, al
test ecx, ecx
je 0x4e0d99
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408510
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e0d99
lea ecx, [ebp - 0x14]
call fcn.0040a8f0
lea ecx, [ebp - 0x14]
call fcn.004084c0
movzx eax, al
test eax, eax
je 0x4e0f23
cmp dword [ebp + 0xc], 0
jne 0x4e0f23
mov word [ebp - 0x22c], 0
push 0x20a
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.004b3d60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x22c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ae00
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040b2a0
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0xffffffff
je 0x4e0e5e
mov ecx, dword [ebp - 0x230]
add ecx, 1
push ecx
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040b4a0
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.0040c650
lea ecx, [ebp - 0x18]
call fcn.004084c0
movzx edx, al
test edx, edx
jne 0x4e0f23
lea ecx, [ebp - 0x18]
call fcn.00423af0
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.004e0c20
add esp, 8
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x264]
push edx
lea ecx, [ebp - 0x18]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.0040c650
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x23c]
push edx
call fcn.0040b520
add esp, 0xc
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
call fcn.0040c650
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e0f23
lea ecx, [ebp - 0x14]
call fcn.0040a8f0
lea ecx, [ebp - 0x14]
call fcn.004084c0
movzx edx, al
test edx, edx
je 0x4e1046
lea ecx, [ebp - 0x18]
call fcn.0040a8f0
lea eax, [ebp - 0x240]
push eax
call fcn.004e0b60
add esp, 4
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x274]
push edx
lea ecx, [ebp - 0x18]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.0040c650
lea ecx, [ebp - 0x18]
call fcn.004084c0
movzx eax, al
test eax, eax
jne 0x4e1046
lea ecx, [ebp - 0x18]
call fcn.00423af0
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.004e0c20
add esp, 8
mov dword [ebp - 0x278], eax
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.0040c650
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.0040b520
add esp, 0xc
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x284], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x284]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0040c650
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e1046
lea ecx, [ebp - 0x14]
call fcn.0040a8f0
lea ecx, [ebp - 0x14]
call fcn.004084c0
movzx eax, al
test eax, eax
je 0x4e1169
lea ecx, [ebp - 0x18]
call fcn.0040a8f0
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004e0aa0
add esp, 4
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.0040c650
lea ecx, [ebp - 0x18]
call fcn.004084c0
movzx ecx, al
test ecx, ecx
jne 0x4e1169
lea ecx, [ebp - 0x18]
call fcn.00423af0
push eax
lea edx, [ebp - 0x250]
push edx
call fcn.004e0c20
add esp, 8
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x294], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.0040c650
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x254]
push ecx
call fcn.0040b520
add esp, 0xc
mov dword [ebp - 0x298], eax
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408510
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call fcn.0040c650
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e1169
lea ecx, [ebp - 0x14]
call fcn.0040a8f0
lea ecx, [ebp - 0x14]
call fcn.004084c0
movzx ecx, al
test ecx, ecx
jne 0x4e119d
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e119d
lea ecx, [ebp - 0x14]
call fcn.00423af0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e11b5
mov ecx, dword [ebp + 8]
call fcn.00423af0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040c650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c650
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret