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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa8
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x48e]
mov word [ebp - 0x490], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x490]
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 - 0x490]
push eax
call fcn.00401120
add esp, 0xc
test eax, eax
je 0x40e85b
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0xaa6]
mov word [ebp - 0xaa8], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0040cdc4
mov eax, dword [eax + 8]
cmp eax, 2
jne 0x40e58d
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 0x40e43b
push eax
push 0x4260b8
lea eax, [ebp - 0x88]
push 0x3f
push eax
call ebx
add esp, 0x10
jmp 0x40e44d
push 0
lea eax, [ebp - 0x88]
push 0x3f
push eax
mov ecx, esi
call fcn.0040ff29
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 0x40e48a
push eax
push 0x4260b8
lea eax, [ebp - 0x108]
push 0x3f
push eax
call ebx
add esp, 0x10
jmp 0x40e4bc
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 8]
push eax
push 0x42851c
push 0x42799c
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.00410468
and word [ebp - 0x698], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x696]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x698]
push 0x103
push eax
push 0x42816c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00402ad1
add esp, 0x10
lea eax, [ebp - 0x698]
mov ecx, esi
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.004103f2
movzx eax, al
push eax
mov ecx, esi
call fcn.00410155
movzx eax, al
push eax
mov ecx, esi
call fcn.00410303
movzx eax, al
push eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040ee6b
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 0x428450
lea eax, [ebp - 0xaa8]
push 0x207
push eax
call ebx
add esp, 0x3c
jmp 0x40e83c
cmp eax, 3
jne 0x40e6e3
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.00410064
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
test eax, eax
jne 0x40e5ee
call fcn.00410999
add eax, 0x38
mov eax, dword [eax + 4]
test eax, eax
jne 0x40e5da
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 0x4260b8
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.0040ff29
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 0x42851c
push 0x42799c
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.00410468
lea eax, [ebp - 0x188]
mov ecx, esi
push eax
call fcn.004103f2
movzx eax, al
push eax
mov ecx, esi
call fcn.00410155
movzx eax, al
push eax
mov ecx, esi
call fcn.00410303
movzx eax, al
push eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040ee6b
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 0x428398
jmp 0x40e82b
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.00410064
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
test eax, eax
jne 0x40e73b
call fcn.00410999
add eax, 0x38
mov eax, dword [eax + 4]
test eax, eax
jne 0x40e727
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 0x4260b8
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.0040ff29
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 0x42851c
push 0x42799c
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.00410468
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
call fcn.004103f2
movzx eax, al
push eax
mov ecx, esi
call fcn.00410155
movzx eax, al
push eax
mov ecx, esi
call fcn.00410303
movzx eax, al
push eax
mov ecx, esi
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040ee6b
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 0x4282e0
lea eax, [ebp - 0xaa8]
push 0x207
push eax
call ebx
add esp, 0x38
lea eax, [ebp - 0xaa8]
push eax
push 0x4282a0
push 0x428294
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