Function at 0x103e6f5
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1099a38]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
push esi
xor eax, eax
inc eax
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x114], eax
je 0x103ecbb
cmp byte [ecx], bl
je 0x103ecbb
cmp edx, ebx
je 0x103ecbb
cmp byte [edx], bl
je 0x103ecbb
cmp edi, ebx
je 0x103e7a2
push 0xfffa
mov esi, 0x1106960
push esi
push 0x100a43c
push edi
call fcn.01070fc9
lea eax, [ebp - 0x110]
push eax
push 0x104
push esi
call fcn.01037501
test eax, eax
jl 0x103ecc2
mov eax, dword [ebp - 0x110]
inc eax
push eax
push esi
call fcn.01037966
test eax, eax
jne 0x103e7a8
jmp 0x103ecc2
mov byte [0x1106960], bl
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
push 4
push ebx
push ebx
push ebx
push 0x100af40
push SysStringLen
call esi
mov edi, eax
cmp edi, ebx
jne 0x103ec7f
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
mov edi, 0x10f55e0
push edi
push dword [ebp - 0x128]
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
jne 0x103ec47
mov eax, dword [ebp - 0x120]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x103e814
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push dword [ebp - 0x120]
push 1
push ebx
push 0x1010d0c
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
jne 0x103e886
mov edi, 0x1106960
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x103e84f
sub eax, ecx
inc eax
push eax
push edi
xor edi, edi
inc edi
push edi
push ebx
push 0x100ae94
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
je 0x103e88e
push eax
push 0x1010cc0
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x103e8e0
push eax
push 0x1010c78
jmp 0x103e87d
push 4
mov dword [ebp - 0x120], edi
pop edi
push edi
lea eax, [ebp - 0x120]
push eax
push edi
push ebx
push 0x1010c6c
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
je 0x103e8bf
push eax
push 0x1010c28
call fcn.01071ac0
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x120]
push eax
push edi
push ebx
push 0x1010c1c
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
je 0x103e8f2
push dword [ebp - 0x118]
push 0x1010bd8
call fcn.01071ac0
pop ecx
pop ecx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
cmp eax, ebx
jne 0x103e9b3
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.ntdll.dll_RtlTimeToTimeFields]
movsx eax, word [ebp - 0x140]
push eax
movsx eax, word [ebp - 0x142]
push eax
movsx eax, word [ebp - 0x144]
push eax
push 0x1010bc8
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
add esp, 0x18
cmp eax, ebx
jl 0x103e9a6
lea eax, [ebp - 0x110]
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01037501
cmp eax, ebx
jl 0x103e99e
inc dword [ebp - 0x110]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push 0x1010bbc
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x118], eax
je 0x103e9c5
push eax
push 0x1010b68
jmp 0x103e9ac
push eax
push 0x1010b10
jmp 0x103e9ac
push eax
push 0x1010ab8
call fcn.01071aea
jmp 0x103e9c3
push eax
push 0x1010a60
call fcn.01071aea
mov edi, 0x104
pop ecx
pop ecx
push 0x1010a48
push 0x103
lea eax, [ebp - 0x108]
push eax
call fcn.0108c975
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x103e9e4
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push 0x1010a3c
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x110], eax
jne 0x103ea2f
push 4
lea eax, [ebp - 0x130]
push eax
push 4
push ebx
push 0x1010a30
push dword [ebp - 0x10c]
call esi
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x11c], ebx
je 0x103ea70
cmp dword [0x10bcec4], ebx
je 0x103ea70
cmp dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ebx
jne 0x103eb89
push 4
lea eax, [ebp - 0x114]
push eax
push 4
push ebx
push 0x1010a24
push dword [ebp - 0x10c]
call esi
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], ebx
jne 0x103eb89
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
mov edi, 0x1010a18
push edi
push 0x100a264
push dword [0x109a040]
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x103ead6
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x103eaaa
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x110], eax
jne 0x103eb89
push ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
mov edi, 0x1010a08
push edi
push 0x100a264
push dword [0x109a040]
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x103eb30
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x103eb08
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
mov dword [ebp - 0x110], eax
jne 0x103eb89
push ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x10109f8
push 0x100a264
push dword [0x109a040]
push ebx
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetLineTextA]
test eax, eax
je 0x103eb89
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x103eb61
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push 0x10109e8
push dword [ebp - 0x10c]
call esi
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x11c], ebx
jne 0x103ec29
cmp dword [0x10bcec4], ebx
je 0x103ebe2
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
mov edi, 0x1010a24
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x103ec29
push 4
lea eax, [ebp - 0x114]
push eax
push 4
push ebx
mov dword [ebp - 0x114], 1
push edi
jmp 0x103ec21
cmp dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], 1
jne 0x103ec29
push 4
pop edi
push edi
lea eax, [ebp - 0x114]
push eax
push edi
push ebx
push 0x1010a24
push dword [ebp - 0x10c]
call esi
cmp eax, ebx
jne 0x103ec29
push edi
lea eax, [ebp - 0x114]
push eax
push edi
push ebx
push 0x10109d0
push dword [ebp - 0x10c]
call esi
push dword [ebp - 0x10c]
call fcn.0103e5c4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x10f55e0
jmp 0x103ec56
push eax
push edi
push 0x1010990
call fcn.01071ac0
add esp, 0xc
cmp dword [ebp - 0x118], ebx
je 0x103ec6b
push edi
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x118]
jmp 0x103ec8c
push edi
push 0x1010958
call fcn.01071ac0
pop ecx
pop ecx
push edi
push dword [ebp - 0x12c]
mov esi, 0x1106960
push 0x10f55e0
push 0x1010924
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x14
push esi
call fcn.01071aad
xor eax, eax
cmp edi, ebx
sete al
jmp 0x103ecc4
push 0xd
call fcn.01037f35
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc