Function at 0x10028380
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, eax
push edi
mov ebx, esi
lea edi, [esp + 0x10]
call fcn.100036f0
mov ecx, dword [0x100bc66c]
mov edi, dword [eax]
push 0x100aa30c
push 0x100aa30c
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edx, dword [edi - 8]
push eax
push edi
push edx
lea eax, [esp + 0x50]
call fcn.10011280
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x100bc65c
je 0x100283f0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x100283f0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.1008441c
add esp, 4
mov edi, dword [esp + 0x40]
push edi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
test eax, eax
je 0x1002862b
cmp dword [edi - 0xc], 0
push ecx
lea ecx, [edi - 0xc]
mov eax, esp
mov dword [esp + 0x18], ecx
jl 0x1002841e
push ecx
mov dword [eax], edi
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x1002842c
mov ecx, dword [0x100bc66c]
push edi
mov dword [eax], ecx
call fcn.100035a0
call fcn.100279b0
test eax, eax
je 0x1002862b
mov ebx, 0x100aa324
lea edi, [esp + 0x10]
call fcn.100036f0
cmp dword [esp + 0x4c], 0
jne 0x1002845a
push 0x100aa360
mov eax, edi
call fcn.100035a0
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x10]
lea edx, [ebp + 0x28]
push edx
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, ebx
mov ecx, esi
call fcn.10027b30
mov eax, dword [eax]
add esp, 8
mov ecx, esp
lea edi, [ebp + 0x24]
mov dword [ecx], eax
test eax, eax
je 0x1002848d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, edi
call fcn.1000a140
test eax, eax
jge 0x100284a5
cmp eax, 0x80004002
je 0x100284a5
push eax
call fcn.100830f0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100284b5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [edi], 0
jne 0x100284f7
lea eax, [ebx - 0xc]
cmp eax, 0x100bc65c
je 0x100284db
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x100284db
push esi
call fcn.1008441c
add esp, 4
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff4
cmp ecx, 0x100bc65c
je 0x1002864d
mov esi, dword [esp + 0x14]
jmp 0x10028639
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x28]
push ecx
push eax
call edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.DLL_CopyRect]
mov esi, 0x20
call fcn.10029000
add eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
test eax, eax
jne 0x1002853a
push 0x80004003
call fcn.100830f0
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push 1
lea ecx, [esp + 0x1c]
push ecx
push eax
call edx
mov eax, dword [edi]
test eax, eax
jne 0x10028559
push 0x80004003
call fcn.100830f0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x110]
push eax
call edx
mov esi, dword [esp + 0x48]
mov eax, dword [edi]
push 0
push 0x66
push ebp
call fcn.10028320
mov eax, dword [edi]
push 0
push 0x67
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x6f
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x6c
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x6b
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x6d
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x6a
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x69
push ebp
call fcn.10028320
mov eax, dword [edi]
push 1
push 0x68
push ebp
call fcn.10028320
lea eax, [ebx - 0xc]
cmp eax, 0x100bc65c
je 0x100285f5
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x100285f5
push esi
call fcn.1008441c
add esp, 4
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff4
cmp ecx, 0x100bc65c
je 0x1002861c
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1002861c
push esi
call fcn.1008441c
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
lea edx, [edi - 0xc]
cmp edx, 0x100bc65c
je 0x1002864d
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1002864d
push esi
call fcn.1008441c
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10