Function at 0x1003196
Capabilities:
Check if file exists
Get file attributes
Manipulate boot configuration
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x404], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push 0x1fa
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x200]
push ebx
push eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x204], ebx
call sub.msvcrt.dll_memset
or dword [ebp - 0x410], 0xffffffff
or dword [ebp - 0x418], 0xffffffff
push 0x1f8
lea eax, [ebp - 0x3fc]
push ebx
push eax
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x400], ebx
call sub.msvcrt.dll_memset
xor ecx, ecx
add esp, 0x18
inc ecx
mov dword [ebp - 0x414], 0xfe
mov dword [ebp - 0x420], ebx
mov dword [esi], ecx
mov edx, 0x1fe
lea eax, [ebp - 0x204]
mov byte [eax], bl
inc eax
dec edx
jne 0x100323e
push ebx
push ecx
push 0x1001344
push edi
call fcn.0100c9d3
mov edi, dword [sym.imp.msvcrt.dll___iob_func]
test eax, eax
je 0x100335e
push ebx
push dword [ebp - 0x404]
call fcn.0100c9b2
test eax, eax
je 0x100327e
push dword [ebp - 0x404]
call fcn.0100cc5c
shr eax, 1
jmp 0x1003283
mov eax, 0x100
push dword [ebp + 0x18]
push 0xfe
push dword [ebp - 0x41c]
push eax
push dword [ebp - 0x404]
push dword [ebp - 0x40c]
call fcn.010110c7
mov dword [ebp - 0x404], eax
cmp eax, ebx
jne 0x10032d7
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e6fc
mov eax, dword [ebp - 0x41c]
mov ecx, 0xfe
mov byte [eax], bl
inc eax
dec ecx
jne 0x10032cc
jmp 0x1003614
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c3
je 0x10032ed
cmp eax, 0x50010001
jne 0x10032ff
jmp 0x10032fd
push 0x20004
call edi
add eax, 0x40
push eax
call fcn.0100e6fc
mov dword [esi], ebx
mov eax, dword [ebp - 0x41c]
mov ecx, 0xfe
mov byte [eax], bl
inc eax
dec ecx
jne 0x100330a
push dword [ebp - 0x40c]
call fcn.01003071
cmp eax, 1
jne 0x100332b
mov dword [ebp - 0x404], ebx
jmp 0x1003614
lea eax, [ebp - 0x410]
push eax
push 0x80000002
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x1003397
call fcn.0100c783
push 0x20001
call edi
add eax, 0x40
push eax
call fcn.0100e6fc
jmp 0x1003320
push dword [ebp - 0x40c]
call fcn.01003071
cmp eax, 1
je 0x1003320
lea eax, [ebp - 0x410]
push eax
push 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x1003397
call fcn.0100c783
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
jmp 0x1003353
lea eax, [ebp - 0x418]
push eax
push 1
push ebx
push 0x1001500
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10033bf
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1003347
mov eax, dword [ebp - 0x414]
add eax, eax
push eax
call fcn.0100cbb3
mov dword [ebp - 0x408], eax
cmp eax, ebx
jne 0x10033e9
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100c783
jmp 0x1003320
push eax
call fcn.0100cc5c
mov ecx, dword [ebp - 0x408]
cmp eax, ebx
je 0x10033ff
mov byte [ecx], bl
inc ecx
dec eax
jne 0x10033f9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x408]
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x10014f0
push dword [ebp - 0x418]
call esi
cmp eax, 0xea
jne 0x1003452
lea eax, [ebp - 0x408]
push eax
call fcn.0100cf4f
mov eax, dword [ebp - 0x414]
add eax, eax
push eax
call fcn.0100cbb3
mov dword [ebp - 0x408], eax
cmp eax, ebx
je 0x10033d7
push dword [ebp - 0x408]
call fcn.0100cc5c
mov ecx, dword [ebp - 0x408]
cmp eax, ebx
je 0x100346d
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1003467
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x408]
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x10014f0
push dword [ebp - 0x418]
call esi
cmp eax, ebx
je 0x10034ba
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0100c783
push 0x8a
call fcn.0100e6e4
push eax
call edi
add eax, 0x40
push eax
call fcn.0100d36f
jmp 0x1003320
mov ecx, dword [ebp - 0x408]
mov edx, dword [ebp - 0x414]
xor eax, eax
mov esi, 0xfe
push esi
mov word [ecx + edx*2 - 2], ax
push dword [ebp - 0x408]
lea eax, [ebp - 0x400]
push eax
call fcn.0100d2e9
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push ebx
push 1
push 0x1001344
push dword [ebp - 0x40c]
call fcn.0100c9d3
test eax, eax
je 0x1003549
mov ecx, dword [ebp - 0x408]
push 0x24
pop eax
mov word [ecx + 2], ax
mov ecx, dword [ebp - 0x408]
xor eax, eax
mov word [ecx + 4], ax
push dword [ebp - 0x408]
lea eax, [ebp - 0x204]
push dword [ebp - 0x40c]
push 0x10014cc
push 0xff
push eax
call fcn.01003137
add esp, 0x14
jmp 0x1003568
push dword [ebp - 0x408]
lea eax, [ebp - 0x204]
push 0x10014b4
push 0xff
push eax
call fcn.01003137
add esp, 0x10
lea eax, [ebp - 0x204]
push 0x10014b0
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
cmp eax, ebx
je 0x100349f
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x10134a0], eax
cmp eax, 0xffffffff
je 0x1003347
lea eax, [ebp - 0x204]
push 0x180
push eax
call dword [sym.imp.msvcrt.dll__wchmod]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x10035e9
lea eax, [ebp - 0x400]
push eax
push 0x8b
call fcn.0100e6e4
push eax
push 1
push 1
call edi
add eax, 0x40
push eax
call fcn.0100e591
add esp, 0x14
jmp 0x1003320
cmp eax, ebx
je 0x10035f7
push 0x8b
jmp 0x10034a4
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x424]
call fcn.0100d2e9
mov dword [ebp - 0x404], 1
cmp dword [ebp - 0x408], ebx
je 0x1003628
lea eax, [ebp - 0x408]
push eax
call fcn.0100cf4f
cmp dword [ebp - 0x418], 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100363f
push dword [ebp - 0x418]
call esi
cmp dword [ebp - 0x410], 0xffffffff
je 0x1003650
push dword [ebp - 0x410]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x404]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100c0ef
leave
ret 0x18