Function at 0x105efc
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x105f04
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x10620f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x1061c5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov edx, 0x2710
call fcn.000271f0
mov dword [ebp - 0x28], 0x2710
mov eax, 0x250c04
xor ecx, ecx
mov edx, 0x2c
call fcn.00012c70
lea eax, [ebp - 0xc]
call fcn.00027684
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x2c]
call fcn.00026f34
mov eax, dword [ebp - 0x2c]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x10619f
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x106220
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x10619f
cmp dword [ebp - 0x10], 7
jne 0x10619f
cmp dword [ebp - 0x28], 1
jbe 0x10619f
cmp dword [ebp - 0x28], 0x2710
jae 0x10619f
xor eax, eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x24]
xor ebx, ebx
jmp 0x106189
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00013ee0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00027578
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.000252ec
push dword [ebp - 0x3c]
push 0x106234
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00014068
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00027578
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push 0x106244
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00014068
call fcn.0002cc64
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x18]
call fcn.000145ac
mov eax, dword [ebp - 0x40]
mov edx, 0x20
call fcn.0002e1b4
mov dword [ebx*4 + 0x250c30], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
call fcn.0002ccb8
push 0
mov eax, dword [ebx*4 + 0x250c30]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jbe 0x1060c6
cmp edi, 0x100000
jae 0x1060c6
lea eax, [ebx*4 + 0x250c04]
mov edx, edi
call fcn.000271f0
push 0
call sub.kernel32.dll_SetLastError
mov edx, dword [ebx*4 + 0x250c04]
mov eax, dword [ebx*4 + 0x250c30]
mov ecx, edi
call fcn.0002e140
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
jmp 0x1060cd
push 2
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 4], 0
je 0x106160
cmp dword [ebp - 0x14], 0
je 0x10612c
push dword [ebp - 0x18]
push 0x106260
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00027444
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0004a880
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x14]
call fcn.00027478
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0004a880
jmp 0x106160
push dword [ebp - 0x18]
push 0x106260
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00027444
push dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00014068
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.00049df8
cmp byte [ebp - 5], 0
je 0x106172
mov eax, dword [ebx*4 + 0x250c30]
call fcn.0002e1ac
push esi
call sub.kernel32.dll_lstrlenA_1
add eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push esi
call sub.kernel32.dll_lstrlenA_1
inc eax
add esi, eax
inc ebx
cmp byte [esi], 0
je 0x10619f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jae 0x10619f
cmp ebx, 0xa
jle 0x105fec
lea eax, [ebp - 0x24]
mov edx, 0x2710
call fcn.00027218
cmp dword [ebp - 0x20], 0
je 0x1061bb
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1061cf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x106216
lea eax, [ebp - 0x60]
mov edx, 8
call fcn.00013d3c
lea eax, [ebp - 0x40]
call fcn.000143f0
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00013d3c
lea eax, [ebp - 0x18]
call fcn.00013d18
lea eax, [ebp - 0xc]
call fcn.00013d18
ret