Function at 0x4c9270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537066
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0049e130
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
cmp word [ebp - 0x218], 0
jne 0x4c92f0
xor ecx, ecx
jmp 0x4c930f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9300
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
add esi, 0x1dc
push eax
mov ecx, esi
call fcn.00405040
push 0x554be8
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.00404640
push 0x554bd0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404750
mov ecx, eax
add esp, 8
mov dword [ebp - 0x280], ecx
cmp esi, ecx
je 0x4c939e
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4c9377
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403010
mov ecx, dword [ebp - 0x280]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4c938f
mov eax, dword [esi]
jmp 0x4c9391
mov eax, esi
xor edx, edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.004042c0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4c93bc
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403010
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4c93fe
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403010
cmp dword [esi + 0x14], 8
jb 0x4c9408
mov eax, dword [esi]
jmp 0x4c940a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c952c
lea eax, [ebp - 0x218]
push eax
call ebx
cmp word [ebp - 0x218], 0
jne 0x4c9430
xor ecx, ecx
jmp 0x4c944f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9440
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00405040
push 0x554c04
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.00404640
push 0x554bec
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00404750
add esp, 8
mov ebx, eax
cmp esi, ebx
je 0x4c94cc
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4c94a5
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403010
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4c94bd
mov eax, dword [esi]
jmp 0x4c94bf
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004042c0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4c94ea
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403010
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4c952c
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00403010
test edi, edi
je 0x4c9567
cmp word [edi], 0
je 0x4c9567
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c9540
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x27c]
push edi
lea ecx, [ecx + 0x1c4]
call fcn.00405040
jmp 0x4c965a
push 0xc
xor eax, eax
mov dword [ebp - 0x234], 7
push 0x554c08
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00405040
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x248]
push eax
sub esp, 8
mov dword [ebp - 4], 4
lea eax, [ebp - 0x278]
mov ecx, esi
push eax
call fcn.004c9720
mov edi, eax
add esi, 0x1c4
cmp esi, edi
je 0x4c9601
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4c95da
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403010
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4c95f2
mov eax, dword [esi]
jmp 0x4c95f4
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004042c0
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x4c961f
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.00403010
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x4c965a
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret 4