Function at 0x100a9100
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22ec
call fcn.100e0230
mov eax, dword [0x10100008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x18
mov ecx, esp
push 0x10102028
call fcn.100b2820
lea ecx, [ebp - 0x2294]
call fcn.10084620
mov ecx, esp
push 0x10101c98
call fcn.100b2820
lea ecx, [ebp - 0x2268]
call fcn.10084620
add esp, 0x18
lea ecx, [ebp - 0x22a0]
cmp dword [ebp - 0x2254], 0x10
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push ecx
push 0x20019
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a9522
push 0x208
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100c1720
add esp, 0xc
mov dword [ebp - 0x2234], 0x104
lea eax, [ebp - 0x229c]
mov dword [ebp - 0x2230], 0
push eax
lea eax, [ebp - 0x226c]
push eax
lea eax, [ebp - 0x2270]
push eax
lea eax, [ebp - 0x2274]
push eax
lea eax, [ebp - 0x2214]
push eax
lea eax, [ebp - 0x2278]
push eax
lea eax, [ebp - 0x227c]
push eax
lea eax, [ebp - 0x2230]
push eax
push 0
lea eax, [ebp - 0x2234]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x22a0]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x2214]
test eax, eax
je 0x100a9522
xor edi, edi
test eax, eax
je 0x100a9522
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop
xor eax, eax
mov dword [ebp - 0x2238], 0x1000
push eax
push eax
push eax
push eax
mov word [ebp - 0x2210], ax
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2210]
push eax
push edi
push dword [ebp - 0x22a0]
call ebx
test eax, eax
jne 0x100a9515
mov dword [ebp - 0x2240], eax
mov word [ebp - 0x2250], ax
lea eax, [ebp - 0x2210]
mov dword [ebp - 0x223c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a9276
sub eax, edx
lea ecx, [ebp - 0x2250]
sar eax, 1
push eax
lea eax, [ebp - 0x2210]
push eax
call fcn.100b2d20
cmp dword [ebp - 0x223c], 8
lea ecx, [ebp - 0x2250]
mov eax, dword [ebp - 0x2240]
cmovae ecx, dword [ebp - 0x2250]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2250]
cmovae ecx, dword [ebp - 0x2250]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x222c]
call fcn.100b3a00
sub esp, 0x18
lea eax, [ebp - 0x222c]
mov ecx, esp
push eax
call fcn.100b2820
sub esp, 0x18
lea eax, [ebp - 0x2294]
mov ecx, esp
push eax
call fcn.100b2820
call fcn.10085d50
add esp, 0x30
test eax, eax
jle 0x100a9480
sub esp, 0x18
mov ecx, esp
push 0x10101980
call fcn.100b2820
lea ecx, [ebp - 0x22e8]
call fcn.10084620
add esp, 0x18
lea edx, [ebp - 0x222c]
push eax
push ecx
lea ecx, [ebp - 0x22d0]
call fcn.10086b50
add esp, 4
lea ecx, [ebp - 0x22b8]
mov edx, eax
call fcn.100b3450
add esp, 4
lea ecx, [ebp - 0x222c]
push eax
call fcn.100b2760
mov edx, dword [ebp - 0x22a4]
cmp edx, 0x10
jb 0x100a938b
mov ecx, dword [ebp - 0x22b8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a9381
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
mov edx, dword [ebp - 0x22bc]
mov dword [ebp - 0x22a8], 0
mov dword [ebp - 0x22a4], 0xf
mov byte [ebp - 0x22b8], 0
cmp edx, 0x10
jb 0x100a93e0
mov ecx, dword [ebp - 0x22d0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a93d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
mov edx, dword [ebp - 0x22d4]
mov dword [ebp - 0x22c0], 0
mov dword [ebp - 0x22bc], 0xf
mov byte [ebp - 0x22d0], 0
cmp edx, 0x10
jb 0x100a9435
mov ecx, dword [ebp - 0x22e8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a942b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
cmp dword [ebp - 0x2218], 0x10
lea eax, [ebp - 0x222c]
cmovae eax, dword [ebp - 0x222c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a9480
test al, 0x10
je 0x100a9480
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.100b2820
sub esp, 0x18
lea eax, [ebp - 0x222c]
mov ecx, esp
push eax
call fcn.100b2820
call fcn.100a8fc0
add esp, 0x30
mov edx, dword [ebp - 0x2218]
cmp edx, 0x10
jb 0x100a94ba
mov ecx, dword [ebp - 0x222c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a94b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
mov edx, dword [ebp - 0x223c]
mov dword [ebp - 0x221c], 0
mov dword [ebp - 0x2218], 0xf
mov byte [ebp - 0x222c], 0
cmp edx, 8
jb 0x100a9515
mov ecx, dword [ebp - 0x2250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a950b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
inc edi
cmp edi, dword [ebp - 0x2214]
jb 0x100a9220
mov edx, dword [ebp - 0x2254]
cmp edx, 0x10
jb 0x100a955c
mov ecx, dword [ebp - 0x2268]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a9552
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
mov edx, dword [ebp - 0x2280]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0xf
mov byte [ebp - 0x2268], 0
cmp edx, 0x10
jb 0x100a95ad
mov ecx, dword [ebp - 0x2294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a95a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100a95dd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a95d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a95ee
push edx
push ecx
call fcn.100bede4
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be889
mov esp, ebp
pop ebp
ret
call fcn.100cb7f0
int3