Function at 0x10028720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e542
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100a6204]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x230], eax
test edi, edi
je 0x10028b40
test esi, esi
je 0x10028b40
xor eax, eax
cmp ax, word [esi]
je 0x10028b40
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10051fb0
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
cmp dword [ebp + 0x18], 0
je 0x100287c8
push 0x20119
jmp 0x100287cd
push 0x20219
push esi
push edi
call fcn.10017580
test eax, eax
jne 0x10028b0e
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.10028f40
test eax, eax
jne 0x10028b0e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10003ca0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x21c]
movzx eax, word [edi]
push eax
call fcn.1005cecf
add esp, 4
test eax, eax
je 0x10028848
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.1005cecf
add esp, 4
test eax, eax
jne 0x10028834
mov esi, dword [ebp - 0x21c]
mov ebx, 1
cmp edi, esi
je 0x100288dd
mov edx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test edx, edx
js 0x10028b5e
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1002888a
push edx
lea ecx, [ebp - 0x21c]
call fcn.1000f2b0
mov esi, dword [ebp - 0x21c]
mov ecx, dword [esi - 0xc]
lea edx, [esi + edi*2]
mov ebx, ecx
sub ebx, edi
lea eax, [ebx*2 + 2]
push eax
push edx
lea eax, [ecx*2 + 2]
push eax
push esi
call fcn.100295c0
add esp, 0x10
test ebx, ebx
js 0x10028b5e
mov eax, dword [ebp - 0x21c]
cmp ebx, dword [eax - 8]
jg 0x10028b5e
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + ebx*2], cx
lea ebx, [ecx + 1]
mov esi, dword [ebp - 0x21c]
movzx eax, word [esi]
xor edi, edi
test ax, ax
je 0x10028968
mov ecx, eax
nop dword [eax]
push ecx
call fcn.1005cecf
add esp, 4
test eax, eax
je 0x10028908
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x1002890a
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x100288f0
test edi, edi
je 0x10028962
mov eax, dword [ebp - 0x21c]
sub edi, eax
sar edi, 1
js 0x10028b68
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edi
or ecx, ebx
jge 0x1002894a
push edi
lea ecx, [ebp - 0x21c]
call fcn.1000f2b0
mov eax, dword [ebp - 0x21c]
cmp edi, dword [eax - 8]
jg 0x10028b5e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edi*2], cx
mov esi, dword [ebp - 0x21c]
cmp dword [esi - 0xc], 0
jne 0x10028984
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10005020
jmp 0x10028b10
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10028d60
mov byte [ebp - 4], 2
mov ecx, 0x100876d8
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100289c9
test dx, dx
je 0x100289c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100289c9
add eax, 4
add ecx, 4
test dx, dx
jne 0x100289a3
xor esi, esi
jmp 0x100289ce
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005020
test esi, esi
jne 0x10028a1d
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.100291e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push eax
call fcn.10013bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005020
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.100291e0
mov byte [ebp - 4], 4
mov ecx, 0x100876d8
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10028a66
test dx, dx
je 0x10028a62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10028a66
add eax, 4
add ecx, 4
test dx, dx
jne 0x10028a40
xor esi, esi
jmp 0x10028a6b
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005020
test esi, esi
jne 0x10028aba
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10028d60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push eax
call fcn.10013bd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005020
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10028aef
cmp word [eax], 0
je 0x10028aef
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.10027980
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.10029190
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10005020
jmp 0x10028b10
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x10028b32
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov eax, esi
jmp 0x10028b42
xor eax, eax
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.10049342
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.100074c0
push 0x80070057
call fcn.100074c0
int3