Function at 0x40ad76
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x696]
mov word [ebp - 0x698], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x698]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], bx
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x698]
push eax
call fcn.00401120
add esp, 0xc
test eax, eax
je 0x40b26e
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x48e]
mov word [ebp - 0x490], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0040993f
mov eax, dword [eax + 8]
cmp eax, 2
jne 0x40afa0
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x86]
mov word [ebp - 0x88], bx
cmp word [esi + 0x90], bx
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
stosw word es:[edi], ax
lea eax, [esi + 0x90]
je 0x40ae51
push eax
push 0x4220a0
lea eax, [ebp - 0x88]
push 0x3f
push eax
call ebx
add esp, 0x10
jmp 0x40ae63
push 0
lea eax, [ebp - 0x88]
push 0x3f
push eax
mov ecx, esi
call fcn.0040c3ab
and word [ebp - 0x108], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x106]
cmp word [esi + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x110]
je 0x40aea0
push eax
push 0x4220a0
lea eax, [ebp - 0x108]
push 0x3f
push eax
call ebx
add esp, 0x10
jmp 0x40aed2
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 8]
push eax
push 0x42305c
push 0x422bc0
push SysReAllocString
mov dword [ebp - 4], 0x7e
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
and word [ebp - 0x188], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x186]
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x188]
mov ecx, esi
push eax
call fcn.0040c871
and word [ebp - 0x8a0], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x89e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x103
lea eax, [ebp - 0x8a0]
push edi
push eax
push 0x422cb8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.004029e2
add esp, 0x10
lea eax, [ebp - 0x8a0]
mov ecx, esi
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0040c7fb
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c5d7
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c70c
movzx eax, al
push eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040b2ed
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x88]
push eax
add esi, 0x10
lea eax, [ebp - 0x288]
push esi
push eax
push 0x422f90
lea eax, [ebp - 0x490]
push edi
push eax
call ebx
add esp, 0x3c
jmp 0x40b24f
cmp eax, 3
jne 0x40b0f6
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x86]
mov word [ebp - 0x88], bx
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.0040c4e6
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
test eax, eax
jne 0x40b001
call fcn.0040cd00
add eax, 0x30
mov eax, dword [eax + 4]
test eax, eax
jne 0x40afed
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 0x4220a0
lea eax, [ebp - 0x88]
push 0x3f
push eax
call ebx
add esp, 0x10
and word [ebp - 0x208], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x206]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x3f
push eax
mov ecx, esi
call fcn.0040c3ab
and word [ebp - 0x108], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x106]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x7e
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 4]
push eax
push 0x42305c
push 0x422bc0
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
and word [ebp - 0x188], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x186]
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x188]
mov ecx, esi
push eax
call fcn.0040c871
lea eax, [ebp - 0x188]
mov ecx, esi
push eax
call fcn.0040c7fb
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c5d7
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c70c
movzx eax, al
push eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040b2ed
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x422ed8
jmp 0x40b23e
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0x86]
mov word [ebp - 0x88], bx
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x88]
mov ecx, esi
push eax
call fcn.0040c4e6
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
test eax, eax
jne 0x40b14e
call fcn.0040cd00
add eax, 0x30
mov eax, dword [eax + 4]
test eax, eax
jne 0x40b13a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 0x4220a0
lea eax, [ebp - 0x88]
push 0x3f
push eax
call ebx
add esp, 0x10
and word [ebp - 0x108], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x106]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x108]
push 0x3f
push eax
mov ecx, esi
call fcn.0040c3ab
and word [ebp - 0x188], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x186]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x7e
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 4]
push eax
push 0x42305c
push 0x422bc0
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
and word [ebp - 0x208], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x206]
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.0040c871
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.0040c7fb
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c5d7
movzx eax, al
push eax
mov ecx, esi
call fcn.0040c70c
movzx eax, al
push eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040b2ed
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x422e20
lea eax, [ebp - 0x490]
push 0x103
push eax
call ebx
add esp, 0x38
lea eax, [ebp - 0x490]
push eax
push 0x422de0
push 0x422dd4
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
add esp, 0x14
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8