Function at 0x409b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dd48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c8748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x409bc7
mov ecx, dword [eax]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 4], eax
jb 0x409be7
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409bf1
mov eax, dword [esi]
lea edx, [ebp - 0x28]
push edx
push 0
push ecx
push eax
push dword [ebp + 8]
call fcn.00463f50
add esp, 0x14
test eax, eax
jne 0x409c33
cmp dword [edi + 0x14], 8
jb 0x409c10
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x409c18
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push 0x40
push edi
push esi
push dword [ebp + 8]
call fcn.00463f50
add esp, 0x14
test eax, eax
je 0x409d34
push 0
push 0x4a3d50
lea ecx, [ebp - 0x28]
call fcn.0040f5f0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [eax + 1]
xor eax, eax
mov word [ebp - 0x44], ax
cmp edx, ecx
jb 0x409d8b
mov eax, edx
sub eax, ecx
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edx
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404110
lea ecx, [ebp - 0x28]
call fcn.00401cf0
movups xmm0, xmmword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x4c], 0
push eax
movups xmmword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], 7
movq xmm0, qword [ebp - 0x34]
push 0x4a3d50
movq qword [ebp - 0x18], xmm0
mov word [ebp - 0x5c], ax
call fcn.0040f5f0
mov edx, eax
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x34], edx
cmovb edx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 8
push edx
cmovae ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00404110
lea ecx, [ebp - 0x28]
call fcn.00401cf0
movups xmm1, xmmword [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x28]
movq xmm0, qword [ebp - 0x4c]
movd eax, xmm1
movups xmmword [ebp - 0x28], xmm1
cmovae ecx, eax
movq qword [ebp - 0x18], xmm0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d34
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x409d2d
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404110
mov esi, 1
jmp 0x409d36
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x409d6c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409d62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409d90
push edx
push ecx
call fcn.00476d79
add esp, 8
mov eax, esi
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.0047702f
mov esp, ebp
pop ebp
ret 0x10
call fcn.004069b0
call fcn.0047c5ae
int3