Function at 0x1002a480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100982c2
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100c6394]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x230], esi
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
cmp eax, ecx
jbe 0x1002a804
mov eax, dword [edx + ecx*4]
cmp dword [eax - 0xc], 0
je 0x1002a804
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
push ecx
push 0x1009e394
push eax
call fcn.10008350
mov eax, dword [ebp - 0x23c]
add esp, 0xc
mov ecx, dword [ebp - 0x238]
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x248], ecx
cmp eax, ecx
je 0x1002a824
or ebx, 0xffffffff
nop dword [eax]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x224], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x1002a577
cmp ecx, dword [edi]
jne 0x1002a577
lock inc dword [eax]
jmp 0x1002a5b0
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1002a83d
mov ecx, dword [esi]
lea eax, [edi + 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [esi]
inc ecx
add ecx, ecx
push ecx
push dword [ebp - 0x224]
push ecx
push eax
call fcn.1000c3d0
mov esi, dword [ebp - 0x230]
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x24c], edi
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.100569b0
mov eax, dword [ebp - 0x240]
add esp, 0xc
push edi
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002a750
lea eax, [ebp - 0x218]
push eax
call fcn.10007a50
add esp, 4
mov dword [ebp - 0x224], eax
call fcn.10006af0
test eax, eax
je 0x1002a833
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x1009dc80
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.10005ea0
test al, al
jne 0x1002a65a
push 0
push 0x1009dc80
lea ecx, [ebp - 0x220]
call fcn.10008270
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 3
test eax, eax
je 0x1002a72f
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.100067d0
add esp, 8
test eax, eax
je 0x1002a715
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x244], eax
cmp ebx, eax
je 0x1002a712
push ebx
lea ecx, [ebp - 0x228]
call fcn.1000ed70
mov esi, dword [ebp - 0x228]
mov byte [ebp - 4], 4
cmp dword [esi - 0xc], 0
je 0x1002a6eb
push ecx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x250], esp
mov ecx, esp
push eax
call fcn.1000ed70
push ecx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call fcn.1000ed70
mov byte [ebp - 4], 4
call fcn.10008a70
add esp, 8
test eax, eax
je 0x1002a791
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a707
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, dword [ebp - 0x244]
jne 0x1002a693
or ebx, 0xffffffff
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp byte [ebp - 0x219], 0
jne 0x1002a7bf
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002a750
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a76b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x22c]
add eax, 4
mov dword [ebp - 0x22c], eax
cmp eax, dword [ebp - 0x248]
je 0x1002a824
mov esi, dword [ebp - 0x230]
jmp 0x1002a550
or ebx, 0xffffffff
mov byte [ebp - 0x219], 1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a715
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002a715
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002a7e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002a7f9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x23c]
call fcn.1000f490
mov al, 1
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.1004d00a
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x23c]
call fcn.1000f490
xor al, al
jmp 0x1002a806
push 0x80004005
call fcn.10005e80
call fcn.10008db0
int3