Function at 0x1005e6a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101271c2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10167c60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 0xc], 0
je 0x1005e944
mov ecx, dword [ebx + 0x130]
test ecx, ecx
je 0x1005e944
lea eax, [ebp - 0x2c]
push eax
call fcn.100087e0
mov ecx, dword [ebp - 0x28]
mov eax, 0x38e38e39
mov esi, dword [ebp - 0x2c]
sub ecx, esi
imul ecx
mov dword [ebp - 4], 0
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1005e919
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
xor edi, edi
mov byte [ebp - 4], 1
test eax, eax
je 0x1005e802
xor eax, eax
mov dword [ebp - 0x10], eax
nop
push dword [esi + eax + 4]
add esi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.10041170
add esp, 8
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x14]
test eax, eax
sete byte [ebp + 0xf]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005e76b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
je 0x1005e792
mov eax, dword [ebp - 0x1c]
push esi
cmp dword [ebp - 0x18], eax
je 0x1005e787
mov ecx, eax
call fcn.10007d10
add dword [ebp - 0x1c], 0x24
jmp 0x1005e7d6
push eax
lea ecx, [ebp - 0x20]
call fcn.10007160
jmp 0x1005e7d6
mov eax, dword [esi]
test eax, eax
jne 0x1005e79c
xor esi, esi
jmp 0x1005e7ad
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x1005e95a
mov byte [ebp - 4], 2
mov dword [ebp + 0xc], 0
call fcn.1004ef00
push esi
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x28]
mov eax, 0x38e38e39
mov esi, dword [ebp - 0x2c]
inc edi
add dword [ebp - 0x10], 0x24
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0x10]
jb 0x1005e730
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x38e38e39
sub ecx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1005e90d
push 0x10174590
push 0x38
call fcn.100c490f
mov esi, eax
add esp, 8
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x1005e849
mov ecx, esi
call fcn.10040290
mov dword [esi], vtable.CAdImageDownload.0
jmp 0x1005e84b
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebx + 0x134], esi
test esi, esi
je 0x1005e90d
call fcn.1004ef00
mov ecx, dword [ebx + 0x134]
push eax
push dword [ebx + 4]
call fcn.10040800
mov ecx, dword [ebp - 0x1c]
mov eax, 0x38e38e39
mov esi, dword [ebp - 0x20]
xor edi, edi
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1005e902
xor eax, eax
mov dword [ebp + 0xc], eax
push dword [eax + esi + 4]
lea eax, [ebp - 0x14]
push eax
call fcn.10041170
add esp, 8
push dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x134]
mov byte [ebp - 4], 4
push dword [eax + esi + 4]
push dword [eax + esi]
call fcn.1000e360
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005e8dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x38e38e39
mov esi, dword [ebp - 0x20]
inc edi
add dword [ebp + 0xc], 0x24
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
mov eax, dword [ebp + 0xc]
jb 0x1005e893
mov ecx, dword [ebx + 0x134]
call fcn.10040850
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.10007eb0
mov ecx, dword [ebx + 0x130]
call fcn.10008990
neg eax
sbb esi, esi
neg esi
call fcn.1004ef00
push esi
push 1
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x2c]
call fcn.10007eb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.10008520
int3