Function at 0x10027c40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d6e2
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x100c82c4]
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 0x10027fc4
mov eax, dword [edx + ecx*4]
cmp dword [eax - 0xc], 0
je 0x10027fc4
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 0x100a3e34
push eax
call fcn.1000c530
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 0x10027fe4
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 0x10027d37
cmp ecx, dword [edi]
jne 0x10027d37
lock inc dword [eax]
jmp 0x10027d70
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
je 0x10027ffd
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.10010430
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.10056110
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 0x10027f10
lea eax, [ebp - 0x218]
push eax
call fcn.1000bdd0
add esp, 4
mov dword [ebp - 0x224], eax
call fcn.1000b620
test eax, eax
je 0x10027ff3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x100a2758
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.1000ac10
test al, al
jne 0x10027e1a
push 0
push 0x100a2758
lea ecx, [ebp - 0x220]
call fcn.1000c450
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 3
test eax, eax
je 0x10027eef
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.1000b300
add esp, 8
test eax, eax
je 0x10027ed5
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x244], eax
cmp ebx, eax
je 0x10027ed2
push ebx
lea ecx, [ebp - 0x228]
call fcn.10012f10
mov esi, dword [ebp - 0x228]
mov byte [ebp - 4], 4
cmp dword [esi - 0xc], 0
je 0x10027eab
push ecx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x250], esp
mov ecx, esp
push eax
call fcn.10012f10
push ecx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call fcn.10012f10
mov byte [ebp - 4], 4
call fcn.1000cc00
add esp, 8
test eax, eax
je 0x10027f51
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10027ec7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, dword [ebp - 0x244]
jne 0x10027e53
or ebx, 0xffffffff
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp byte [ebp - 0x219], 0
jne 0x10027f7f
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 0x10027f10
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 0x10027f2b
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 0x10027fe4
mov esi, dword [ebp - 0x230]
jmp 0x10027d10
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 0x10027ed5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10027ed5
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 0x10027fa0
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 0x10027fb9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x23c]
call fcn.10013600
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.10045897
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x23c]
call fcn.10013600
xor al, al
jmp 0x10027fc6
push 0x80004005
call fcn.1000abf0
call fcn.1000cf30
int3