Function at 0x103ff70
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcb0
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xe
mov esi, 0x100ae7c
lea edi, [ebp - 0xca8]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x808], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x408], dx
push 0x3fe
push 0
lea eax, [ebp - 0x406]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0xc10], cx
push 0x3fe
push 0
lea edx, [ebp - 0xc0e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0xc60], ax
push 0x44
push 0
lea ecx, [ebp - 0xc5e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0xc68], 0
mov dword [ebp - 0xc64], 0
mov dword [ebp - 0xcac], 0
mov dword [ebp - 0x810], 0
mov dword [ebp - 0xc6c], 0
mov dword [ebp - 0xc14], 0
mov dword [ebp - 0x80c], 0
mov dword [ebp - 0xc70], 0
mov edx, dword [ebp + 8]
push edx
push 0x100ae38
call fcn.010429b0
add esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xcb0], ecx
mov edx, dword [ebp - 0xcb0]
sub edx, 6
mov dword [ebp - 0xcb0], edx
cmp dword [ebp - 0xcb0], 3
ja case.default.0x10400b3
mov eax, dword [ebp - 0xcb0]
jmp dword [eax*4 + 0x10405a4]
mov ecx, dword [ebp + 8]
push ecx
push 0x100adc8
push 0x200
lea edx, [ebp - 0x808]
push edx
call fcn.01011d00
add esp, 0x10
lea eax, [ebp - 0xca8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0xc6c]
push eax
push 1
push 1
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0101a970
add esp, 0x20
test eax, eax
je 0x104011a
xor eax, eax
cmp dword [ebp - 0xc6c], 0
sete al
mov dword [ebp - 0xc68], eax
jmp 0x104058c
cmp dword [ebp + 0x20], 0
je 0x104013a
mov dword [ebp - 0xc68], 1
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0xc68]
mov dword [ecx], edx
jmp 0x104058c
mov eax, dword [ebp + 8]
push eax
push 2
push 2
push 0xc00000d6
push 2
push 3
call fcn.010287e0
add esp, 0x18
push 0x104c84c
call dword [0x104ef44]
test eax, eax
jne 0x1040199
cmp dword [0x104e7a8], 0
je 0x104018e
cmp dword [0x104e0cc], 0
je 0x104018e
lea ecx, [ebp - 0xca8]
push ecx
push 0x1001c84
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x104e7a8], 0
je 0x10401c0
cmp dword [0x104e0cc], 0
je 0x10401c0
lea edx, [ebp - 0xca8]
push edx
push 0x1001c50
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
lea eax, [ebp - 0xc60]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
push ecx
call fcn.0103a700
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc60]
push eax
push 0x100ac90
push 0x200
lea ecx, [ebp - 0x808]
push ecx
call fcn.01011d00
add esp, 0x14
lea edx, [ebp - 0xca8]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc6c]
push edx
push 1
push 1
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0101a970
add esp, 0x20
test eax, eax
je 0x104023d
xor edx, edx
cmp dword [ebp - 0xc6c], 0
sete dl
mov dword [ebp - 0xc68], edx
cmp dword [ebp - 0xc68], 0
je 0x10402fd
mov dword [ebp - 0xc14], 0
jmp 0x1040265
mov eax, dword [ebp - 0xc14]
add eax, 1
mov dword [ebp - 0xc14], eax
mov ecx, dword [ebp - 0xc14]
cmp ecx, dword [0x104ca34]
jge 0x10402e7
mov dword [ebp - 0xcac], 0
mov edx, dword [ebp - 0xc14]
push edx
push 0x104ca2c
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xcac], eax
cmp dword [ebp - 0xcac], 0
je 0x10402e2
mov eax, dword [ebp - 0xcac]
mov dword [eax + 0x364], 0
mov ecx, dword [ebp - 0xcac]
mov dword [ecx + 0x360], 0
lea edx, [ebp - 0xca8]
push edx
lea eax, [ebp - 0xc64]
push eax
mov ecx, dword [ebp - 0xcac]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.010399b0
add esp, 0x10
jmp 0x1040256
call fcn.01038620
push 0x131
push 0
push 3
call fcn.01028fb0
add esp, 0xc
push 0x104c84c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x104e7a8], 0
je 0x104032f
cmp dword [0x104e0cc], 0
je 0x104032f
lea eax, [ebp - 0xca8]
push eax
push 0x1001c1c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
jmp 0x104058c
lea ecx, [ebp - 0x810]
push ecx
push 0x2001b
push 0
push 0x104ea08
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.01042900
add esp, 0x14
mov dword [ebp - 0xc70], eax
cmp dword [ebp - 0xc70], 0
jne 0x104047b
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x1b]
and eax, 0xff
movzx ecx, al
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x1a]
and eax, 0xff
movzx edx, al
shl edx, 8
or ecx, edx
movzx eax, cx
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
je 0x104042e
cmp dword [ebp - 0x80c], 0xa
jl 0x104042e
cmp dword [ebp - 0x80c], 0x7080
jg 0x104042e
push 4
lea ecx, [ebp - 0x80c]
push ecx
push 4
push 0
push 0x1006eac
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc70], eax
xor eax, eax
cmp dword [ebp - 0xc70], 0
sete al
mov dword [ebp - 0xc68], eax
cmp dword [ebp - 0xc68], 0
je 0x104042c
mov ecx, dword [ebp - 0x80c]
mov dword [0x104e0e0], ecx
cmp dword [ebp + 0x1c], 0
je 0x1040414
mov edx, dword [ebp + 0x1c]
mov dword [edx], 1
mov eax, dword [ebp - 0x80c]
push eax
push 0x15b
push 0
push 3
call fcn.01028fb0
add esp, 0x10
jmp 0x104046e
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push 0x160
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp - 0x80c]
push eax
lea ecx, [ebp - 0x408]
push ecx
push 0x200
lea edx, [ebp - 0xc10]
push edx
call fcn.01011d00
add esp, 0x10
mov eax, dword [ebp - 0x810]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc68], 0
jne 0x104054e
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push 0x142
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp - 0xc70], 0
je 0x10404cc
push 0x400
lea eax, [ebp - 0xc10]
push eax
mov ecx, dword [ebp - 0xc70]
push ecx
call fcn.010425e0
add esp, 0xc
jmp 0x10404f2
movzx edx, word [ebp - 0xc10]
test edx, edx
jne 0x10404f2
push 0x200
lea eax, [ebp - 0xc10]
push eax
push 0x17
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0xc10]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add esi, eax
cmp esi, dword [ebp + 0x18]
jae 0x104054e
lea ecx, [ebp - 0xc10]
push ecx
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.01011d00
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0x100155c
push 1
call fcn.01028fb0
add esp, 0x10
jmp 0x104058c
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x124
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.01011d00
add esp, 0x10
mov eax, dword [ebp - 0xc68]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret