Function at 0x1005eb60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127252
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.1005e500
test eax, eax
je 0x1005ebc9
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x30]
push 1
push eax
push 0
push 0x10
mov dword [ebp - 0x30], 0
call esi
test eax, eax
je 0x1005ebc9
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1005ebc9
push 1
push 0
push 0
push 0x11
mov dword [edi + 0x80], eax
call esi
push 0xffffffffffffffec
mov dword [edi + 0x68], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x80
cmp eax, ecx
je 0x1005ebf3
push ecx
push 0xffffffffffffffec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
call fcn.1005e280
test eax, eax
je 0x1005edf9
lea eax, [ebp - 0x2c]
push eax
call fcn.1002fe60
mov ecx, eax
call fcn.100211e0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x1005ec6b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005ec6b
movups xmm0, xmmword [edi + 0x140]
push edi
sub esp, 0x10
lea ecx, [edi + 0x88]
mov eax, esp
push dword [edi + 0xf0]
movups xmmword [eax], xmm0
push dword [edi + 4]
call fcn.10060480
push 0
push dword [ebp - 0x2c]
lea ecx, [edi + 0x88]
call fcn.10060720
mov dword [edi + 0x84], 1
mov ecx, dword [edi + 0xe8]
test ecx, ecx
je 0x1005ec86
mov esi, dword [ecx]
lea eax, [edi + 0x70]
mov edx, edi
neg edx
sbb edx, edx
and edx, eax
push edx
call dword [esi + 0x10]
mov eax, dword [edi + 0x24]
lea esi, [edi + 0x24]
push 0x7d0
push 0x4c7
push esi
call dword [eax + 0x10]
mov eax, dword [esi]
push 0x7d0
push 0x4c8
push esi
call dword [eax + 0x10]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
lea eax, [ebp - 0x28]
mov dword [edi + 0x110], 0
push eax
call fcn.1002fe60
mov ecx, eax
call fcn.10021a20
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x1005ed53
push 0x10174590
push 0x34
call fcn.100c490f
add esp, 8
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1005ecfc
mov ecx, eax
call fcn.10007c60
jmp 0x1005ecfe
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi + 0x130], eax
test eax, eax
je 0x1005ed53
call fcn.1002fe60
mov ecx, eax
call fcn.10021c20
mov esi, eax
call fcn.10008be0
mov ecx, dword [edi + 0x130]
push eax
push dword [edi + 4]
call fcn.1000b910
push dword [ebp - 0x28]
mov ecx, dword [edi + 0x130]
call fcn.1000b8b0
mov ecx, dword [edi + 0x130]
push esi
call fcn.1000b900
mov ecx, dword [edi + 0x130]
call fcn.1000ba70
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [edi + 4]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push eax
mov dword [edi + 0x138], ecx
push ecx
lea ecx, [ebp - 0x21]
mov dword [edi + 0x13c], eax
call fcn.1005d550
push eax
call fcn.10061520
add esp, 0xc
call fcn.1002fe60
mov ecx, eax
call fcn.10022480
test eax, eax
je 0x1005edb9
push 0
call fcn.1002fe60
mov ecx, eax
call fcn.100238f0
mov eax, dword [edi + 0x78]
lea ecx, [edi + 0x78]
call dword [eax + 0x18]
mov edx, dword [ebp - 0x28]
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005edda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1005edf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100c495f
mov esp, ebp
pop ebp
ret