Function at 0x10029690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084e72
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100ae254]
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 0x10029ab0
test esi, esi
je 0x10029ab0
xor eax, eax
cmp ax, word [esi]
je 0x10029ab0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10058a20
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 0x10029738
push 0x20119
jmp 0x1002973d
push 0x20219
push esi
push edi
call fcn.10018190
test eax, eax
jne 0x10029a7e
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.10029eb0
test eax, eax
jne 0x10029a7e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10003d20
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x21c]
movzx eax, word [edi]
push eax
call fcn.1006392f
add esp, 4
test eax, eax
je 0x100297b8
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.1006392f
add esp, 4
test eax, eax
jne 0x100297a4
mov esi, dword [ebp - 0x21c]
mov ebx, 1
cmp edi, esi
je 0x1002984d
mov edx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test edx, edx
js 0x10029ace
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x100297fa
push edx
lea ecx, [ebp - 0x21c]
call fcn.1000f930
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.1002a530
add esp, 0x10
test ebx, ebx
js 0x10029ace
mov eax, dword [ebp - 0x21c]
cmp ebx, dword [eax - 8]
jg 0x10029ace
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 0x100298d8
mov ecx, eax
nop dword [eax]
push ecx
call fcn.1006392f
add esp, 4
test eax, eax
je 0x10029878
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x1002987a
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x10029860
test edi, edi
je 0x100298d2
mov eax, dword [ebp - 0x21c]
sub edi, eax
sar edi, 1
js 0x10029ad8
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edi
or ecx, ebx
jge 0x100298ba
push edi
lea ecx, [ebp - 0x21c]
call fcn.1000f930
mov eax, dword [ebp - 0x21c]
cmp edi, dword [eax - 8]
jg 0x10029ace
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 0x100298f4
xor esi, esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.10005520
jmp 0x10029a80
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10029cd0
mov byte [ebp - 4], 2
mov ecx, 0x1008d6c8
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10029939
test dx, dx
je 0x10029935
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10029939
add eax, 4
add ecx, 4
test dx, dx
jne 0x10029913
xor esi, esi
jmp 0x1002993e
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005520
test esi, esi
jne 0x1002998d
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.1002a150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push eax
call fcn.10014330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005520
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1002a150
mov byte [ebp - 4], 4
mov ecx, 0x1008d6c8
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100299d6
test dx, dx
je 0x100299d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100299d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x100299b0
xor esi, esi
jmp 0x100299db
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005520
test esi, esi
jne 0x10029a2a
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.10029cd0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push eax
call fcn.10014330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.10005520
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x10029a5f
cmp word [eax], 0
je 0x10029a5f
push eax
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.100288f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.1002a100
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.10005520
jmp 0x10029a80
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x10029aa2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov eax, esi
jmp 0x10029ab2
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.10051ab7
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10007a30
push 0x80070057
call fcn.10007a30
int3