Function at 0x4a4150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4a43f3
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
mov eax, dword [esi]
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x4a41b3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.004144e0
mov byte [ebp - 4], 2
mov eax, dword [esi]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x4a41cd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x40]
call fcn.004144e0
mov byte [ebp - 4], 3
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4a43fd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
mov eax, 0x57e030
lea ecx, [ebp - 0x2c]
test eax, 0xffff0000
jne 0x4a4214
movzx eax, ax
push eax
call fcn.00414050
jmp 0x4a4220
push 0
push 0x57e030
call fcn.004143c0
mov byte [ebp - 4], 5
mov eax, dword [esi]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x4a4231
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004144e0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x3c]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.004907b0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4a4263
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x38]
call fcn.004144e0
mov byte [ebp - 4], 7
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x4a427a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.004144e0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.004c0a90
add esp, 0x14
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edx, dword [ebp - 0x34]
mov ecx, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4a42cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a42eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4309
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4327
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4345
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4363
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x4c], 0
mov esi, dword [ebp - 0x48]
jne 0x4a439e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a439e
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
mov byte [eax], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x4a43a7
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4a4395
mov edi, dword [edi]
push eax
push edi
call fcn.004079c0
jmp 0x4a43a7
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
mov byte [eax], 0
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 4]
mov al, byte [eax]
mov byte [ebp - 0x25], al
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a43d3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3