Function at 0x1002a5c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100983d2
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100c7394]
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 0x1002a944
mov eax, dword [edx + ecx*4]
cmp dword [eax - 0xc], 0
je 0x1002a944
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 0x1009f394
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 0x1002a964
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 0x1002a6b7
cmp ecx, dword [edi]
jne 0x1002a6b7
lock inc dword [eax]
jmp 0x1002a6f0
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1002a97d
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.10056af0
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 0x1002a890
lea eax, [ebp - 0x218]
push eax
call fcn.10007a50
add esp, 4
mov dword [ebp - 0x224], eax
call fcn.10006af0
test eax, eax
je 0x1002a973
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x1009ec80
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.10005ea0
test al, al
jne 0x1002a79a
push 0
push 0x1009ec80
lea ecx, [ebp - 0x220]
call fcn.10008270
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 3
test eax, eax
je 0x1002a86f
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.100067d0
add esp, 8
test eax, eax
je 0x1002a855
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x244], eax
cmp ebx, eax
je 0x1002a852
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 0x1002a82b
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 0x1002a8d1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002a847
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, dword [ebp - 0x244]
jne 0x1002a7d3
or ebx, 0xffffffff
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp byte [ebp - 0x219], 0
jne 0x1002a8ff
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 0x1002a890
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 0x1002a8ab
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 0x1002a964
mov esi, dword [ebp - 0x230]
jmp 0x1002a690
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 0x1002a855
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1002a855
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 0x1002a920
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 0x1002a939
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.1004d14a
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x23c]
call fcn.1000f490
xor al, al
jmp 0x1002a946
push 0x80004005
call fcn.10005e80
call fcn.10008db0
int3