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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x10060b0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push 0x11
pop ecx
mov dword [ebp - 0x36c], eax
xor eax, eax
mov dword [ebp - 0x3fc], ebx
lea edi, [ebp - 0x3f8]
rep stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x368], ebx
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
mov edi, 0x105
mov dword [ebp - 0x370], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x384], ebx
mov dword [ebp - 0x378], edi
mov dword [ebp - 0x38c], ebx
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x394], ebx
mov dword [ebp - 0x398], ebx
mov dword [ebp - 0x390], ebx
call fcn.01001f8a
push esi
mov dword [ebp - 0x388], eax
mov dword [0x10060bc], esi
call fcn.01002822
cmp dword [ebp - 0x36c], ebx
mov dword [0x10060b8], eax
je 0x1002a72
push dword [ebp - 0x36c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
cmp eax, edi
jle 0x1002a72
push dword [ebp - 0x36c]
call esi
inc eax
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x380], eax
je 0x100324f
push 0x10011bc
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002b83
lea eax, [ebp - 0x36c]
push eax
push 0x20019
push ebx
push 0x1001470
push 0x80000001
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x394], ebx
mov dword [ebp - 0x398], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002b40
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x390]
push eax
push ebx
push 0x1001464
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002b2c
cmp dword [ebp - 0x36c], ebx
je 0x100324f
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100324f
cmp dword [ebp - 0x36c], ebx
je 0x1002b40
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.010027cc
cmp eax, ebx
mov dword [0x10060b4], eax
je 0x1002b5f
push 0x1001230
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10060c0], eax
mov eax, dword [0x10060c0]
cmp eax, ebx
je 0x100324f
push ebx
push ebx
lea ecx, [ebp - 0x37c]
push ecx
lea ecx, [ebp - 0x384]
push ecx
call eax
jmp 0x100324f
call fcn.010018a8
push dword [0x10060b8]
push ebx
call fcn.01001b12
mov eax, dword [ebp - 0x380]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov byte [eax], bl
mov edi, 0x104
push edi
lea eax, [ebp - 0x244]
push eax
push 0x7d1
push dword [0x10060b8]
call esi
push edi
lea eax, [ebp - 0x348]
push eax
push 0x7da
push dword [0x10060b8]
call esi
push 0x1001184
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002c60
push ebx
push 0x1001454
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [ebp - 0x370], eax
je 0x1002c60
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
neg eax
sbb eax, eax
and eax, 0xfffffffa
add eax, 9
or eax, 1
push eax
push dword [ebp - 0x370]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x370]
call esi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [ebp - 0x370]
call esi
push dword [ebp - 0x370]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [ebp - 0x370]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x100324f
cmp dword [ebp - 0x388], ebx
je 0x1002d03
push str.Address_Book_Viewer
call fcn.01001fde
push 0x65
push dword [0x10060b8]
mov esi, eax
mov eax, dword [0x10060bc]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x1002053
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
push dword [0x10060bc]
push ebx
push ebx
push 0xc8
push 0x12c
push ebx
push ebx
push 0xcf0000
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
mov dword [ebp - 0x370], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002d87
mov eax, dword [0x10060bc]
push 0x65
push dword [0x10060b8]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x100202d
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
mov esi, str.Address_Book_Viewer
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push dword [0x10060bc]
push ebx
push ebx
push 0xc8
push 0x12c
push ebx
push ebx
push 0xcf0000
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
cmp eax, ebx
je 0x100324f
push dword [ebp - 0x36c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x364], eax
call edi
test eax, eax
mov esi, dword [ebp - 0x380]
je 0x1002de7
push dword [ebp - 0x378]
lea eax, [ebp - 0x374]
push esi
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x36c]
push dword [0x10060b8]
push dword [ebp - 0x370]
call fcn.010022bc
test eax, eax
je 0x100324f
test byte [ebp - 0x374], 1
je 0x1002eaf
push esi
call fcn.01001f11
mov dword [ebp - 0x394], esi
mov dword [ebp - 0x35c], 0x400000
call fcn.010027cc
cmp eax, ebx
mov dword [0x10060b4], eax
je 0x1002e29
push 0x1001230
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10060c0], eax
mov eax, dword [0x10060c0]
cmp eax, ebx
je 0x100324f
mov dword [ebp - 0x368], 0x20
mov esi, 0x1001238
lea edi, [ebp - 0x358]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x368]
push ecx
lea ecx, [ebp - 0x37c]
movsd dword es:[edi], dword [esi]
push ecx
lea ecx, [ebp - 0x384]
push ecx
movsd dword es:[edi], dword [esi]
call eax
cmp eax, ebx
jge 0x1002f3b
cmp eax, 0x80040108
je 0x1002f24
cmp eax, 0x80040116
je 0x1002f1d
cmp eax, 0x8004011b
je 0x1002f16
cmp eax, 0x80070005
je 0x1002f0f
xor ecx, ecx
cmp eax, 0x8007000e
sete cl
dec ecx
and ecx, 0xfffffff7
add ecx, 0x7dc
mov eax, ecx
jmp 0x1002f29
test byte [ebp - 0x373], 1
je 0x1002ec3
mov dword [ebp - 0x390], esi
jmp 0x1002e0a
test byte [ebp - 0x373], 0x10
je 0x1002edd
push esi
call fcn.01001f11
mov dword [ebp - 0x398], esi
jmp 0x1002e0a
test byte [ebp - 0x372], 1
je 0x1002ef9
and byte [ebp - 0x35a], 0xbf
and byte [ebp - 0x372], 0xfe
jmp 0x1002e0a
push esi
call edi
test eax, eax
je 0x1002e00
mov dword [ebp - 0x360], esi
jmp 0x1002e0a
mov eax, 0x7dd
jmp 0x1002f29
mov eax, 0x7de
jmp 0x1002f29
mov eax, 0x7df
jmp 0x1002f29
mov eax, 0x7e1
push 0x104
lea ecx, [ebp - 0x140]
push ecx
push eax
jmp 0x100320d
mov ecx, dword [ebp - 0x384]
cmp ecx, ebx
je 0x1003263
mov eax, dword [ebp - 0x374]
cmp eax, ebx
jne 0x10030c9
mov esi, dword [ebp - 0x380]
push esi
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x38c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002f9d
lea eax, [ebp - 0x378]
push eax
push ebx
lea eax, [ebp - 0x38c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x348]
push eax
push 0x2500
mov dword [ebp - 0x378], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x38c]
or dword [ebp - 0x3c8], 0xffffffff
push ebx
lea edx, [ebp - 0x3fc]
push edx
mov dword [ebp - 0x3d8], eax
mov eax, dword [ebp - 0x384]
lea edx, [ebp - 0x370]
push edx
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x3f4], 2
mov dword [ebp - 0x3dc], ebx
mov dword [ebp - 0x3e0], 0x1001f01
mov dword [ebp - 0x3e4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp eax, ebx
jge 0x100300b
push 0x104
lea eax, [ebp - 0x140]
push eax
push 0x7e0
jmp 0x100320d
cmp dword [ebp - 0x388], ebx
push ebx
push ebx
lea eax, [ebp - 0x3b4]
push ebx
push eax
je 0x1003073
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1003068
cmp dword [ebp - 0x3e4], ebx
je 0x1003044
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x370]
call dword [ebp - 0x3e4]
test eax, eax
jne 0x100305e
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3b4]
push eax
call esi
test eax, eax
jne 0x1003025
jmp 0x100324f
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x10030be
cmp dword [ebp - 0x3e4], ebx
je 0x100309a
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x370]
call dword [ebp - 0x3e4]
test eax, eax
jne 0x10030b4
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3b4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3b4]
push eax
call esi
test eax, eax
jne 0x100307b
jmp 0x100324f
test al, 0x10
je 0x10030e0
mov eax, dword [ebp - 0x37c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x24]
jmp 0x100324f
test ah, 1
je 0x10031d9
call fcn.01001f8a
mov esi, eax
mov dword [ebp - 0x374], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, ebx
mov dword [ebp - 0x388], eax
je 0x1003184
mov esi, 0x1001444
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x36c], eax
lea eax, [ebp - 0x3c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0x388], ebx
mov dword [ebp - 0x378], eax
je 0x1003184
mov eax, dword [ebp - 0x36c]
cmp word [eax], bx
je 0x1003184
mov eax, dword [ebp - 0x378]
push 0x20
add eax, eax
pop ecx
cmp eax, ecx
ja 0x100314d
mov ecx, eax
mov esi, dword [ebp - 0x36c]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp + eax - 0x24], bx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10031bc
add dword [ebp - 0x36c], 2
jne 0x1003131
mov edx, dword [ebp - 0x390]
mov eax, dword [ebp - 0x374]
mov ecx, dword [ebp - 0x37c]
mov esi, dword [ecx]
neg eax
push ebx
sbb eax, eax
push edx
and eax, 0x80000000
or eax, 8
push eax
push dword [ebp - 0x370]
push dword [ebp - 0x384]
push ecx
call dword [esi + 0x2c]
jmp 0x100324f
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x378]
lea eax, [eax + ecx*2]
cmp eax, ebx
mov dword [ebp - 0x374], eax
je 0x1003184
mov edx, eax
jmp 0x1003190
test al, 1
je 0x1003237
push dword [ebp - 0x394]
mov eax, dword [ebp - 0x37c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x28]
cmp eax, ebx
jge 0x100324f
cmp eax, 0x80040113
je 0x100324f
push 0x104
lea eax, [ebp - 0x140]
push eax
push 0x7e3
push dword [0x10060b8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x370]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x100324f
test ah, 0x10
je 0x100324f
push dword [ebp - 0x398]
push ecx
push dword [ebp - 0x37c]
push ebx
call fcn.01004511
mov ecx, dword [ebp - 0x384]
cmp ecx, ebx
je 0x1003263
mov eax, dword [ecx]
cmp eax, ebx
je 0x1003263
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x37c]
cmp ecx, ebx
je 0x1003277
mov eax, dword [ecx]
cmp eax, ebx
je 0x1003277
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x38c], ebx
je 0x100328b
push dword [ebp - 0x38c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060b4]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x100329d
push eax
call esi
cmp dword [ebp - 0x380], ebx
je 0x10032b1
push dword [ebp - 0x380]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060b8]
cmp eax, ebx
je 0x10032bd
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3ac]
pop edi
pop esi
pop ebx
call fcn.01004a37
leave
ret 0x10