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

Disassembly:
push ebp
mov eax, dword [0x10060b0]
mov edi, edi
mov ebp, esp
sub esp, 0x3fc
push ebx
push esi
xor ebx, ebx
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea edi, [ebp - 0x3f8]
mov eax, dword [ebp + 0x10]
push 0x11
pop ecx
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x3fc], ebx
xor eax, eax
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]
mov dword [ebp - 0x380], eax
cmp eax, ebx
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 - 0x390]
lea edi, [ebp - 0x398]
push edi
lea edi, [ebp - 0x394]
push edi
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
lea ecx, [ebp - 0x384]
push ebx
lea edi, [ebp - 0x37c]
push ebx
push edi
push ecx
call eax
jmp 0x100324f
call fcn.010018a8
push dword [0x10060b8]
push ebx
call fcn.01001b12
mov esi, 0x104
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [ebp - 0x380]
mov byte [eax], bl
push esi
lea eax, [ebp - 0x244]
push eax
push 0x7d1
push dword [0x10060b8]
call edi
lea eax, [ebp - 0x348]
push esi
push eax
push 0x7da
push dword [0x10060b8]
call edi
push 0x1001184
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
or 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
sub eax, 0xfffffff7
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 edi, 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], edi
mov dword [ebp - 8], edi
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 edi
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push edi
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 esi, str.Address_Book_Viewer
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_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
lea eax, [ebp - 0x374]
push dword [ebp - 0x378]
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
mov dword [0x10060b4], eax
cmp eax, ebx
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
lea esi, [ebp - 0x368]
mov dword [ebp - 0x368], 0x20
lea edi, [ebp - 0x358]
lea ecx, [ebp - 0x384]
push ebx
push esi
mov esi, 0x1001238
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x37c]
push esi
push ecx
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
sub ecx, 0xfffff824
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 0x100325f
mov eax, dword [ebp - 0x374]
cmp eax, ebx
jne 0x10030c9
mov edi, dword [ebp - 0x380]
push edi
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x38c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002f9d
lea esi, [ebp - 0x38c]
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x348]
push ebx
push esi
push ebx
push ebx
push eax
push 0x2500
mov dword [ebp - 0x378], edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x38c]
or dword [ebp - 0x3c8], 0xffffffff
lea eax, [ebp - 0x3fc]
lea edx, [ebp - 0x370]
push ebx
push eax
mov dword [ebp - 0x3d8], ecx
mov eax, dword [ebp - 0x384]
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
lea eax, [ebp - 0x3b4]
push ebx
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]
or 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]
lea eax, [ebp - 0x3b4]
push ebx
push ebx
push ebx
push eax
call esi
or eax, eax
jne 0x1003025
jmp 0x100324f
mov edi, 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]
or 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]
lea eax, [ebp - 0x3b4]
push ebx
push ebx
push ebx
push eax
call edi
or 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 dword [ebp - 0x374], ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp edi, ebx
mov dword [ebp - 0x388], eax
je 0x1003184
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x36c], eax
mov esi, 0x1001444
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
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 edx, dword [ebp - 0x36c]
cmp word [edx], bx
je 0x1003184
mov edx, dword [ebp - 0x378]
push 0x20
add edx, edx
pop ecx
cmp edx, ecx
ja 0x100314d
mov ecx, edx
lea edi, [ebp - 0x24]
mov esi, dword [ebp - 0x36c]
mov word [ebp + edx - 0x24], bx
mov edx, ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
or eax, eax
je 0x10031bc
sub dword [ebp - 0x36c], 0xfffffffe
jne 0x1003131
mov edx, dword [ebp - 0x390]
mov eax, dword [ebp - 0x374]
neg eax
sbb eax, eax
and eax, 0x80000000
or eax, 8
mov ecx, dword [ebp - 0x37c]
mov edi, dword [ecx]
push ebx
push edx
push eax
push dword [ebp - 0x370]
push dword [ebp - 0x384]
push ecx
call dword [edi + 0x2c]
jmp 0x100324f
mov ecx, dword [ebp - 0x378]
mov eax, dword [ebp - 0x36c]
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 edi, [ebp - 0x244]
lea eax, [ebp - 0x140]
push edi
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.01004509
mov eax, dword [ebp - 0x384]
cmp eax, ebx
je 0x100325f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x37c]
cmp eax, ebx
je 0x100326f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x38c], ebx
je 0x1003283
push dword [ebp - 0x38c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060b4]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x1003295
push eax
call edi
cmp dword [ebp - 0x380], ebx
je 0x10032a9
push dword [ebp - 0x380]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060b8]
cmp eax, ebx
je 0x10032b5
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, dword [ebp - 0x3ac]
pop ebx
call fcn.01004a2f
leave
ret 0x10