Function at 0x100292d
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 [0x10060ac]
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.0100201c
mov dword [ebp - 0x388], eax
mov dword [0x10060c0], esi
call fcn.010028b7
cmp dword [ebp - 0x36c], ebx
mov dword [0x10060bc], eax
je 0x10029f4
push dword [ebp - 0x36c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
cmp eax, edi
jle 0x10029f4
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 0x10031d1
push 0x100120c
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002b05
lea eax, [ebp - 0x36c]
push eax
push 0x20019
push ebx
push 0x100148c
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 0x1002ac2
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x390]
push eax
push ebx
push 0x1001480
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002aae
cmp dword [ebp - 0x36c], ebx
je 0x10031d1
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10031d1
cmp dword [ebp - 0x36c], ebx
je 0x1002ac2
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01002861
cmp eax, ebx
mov dword [0x10060b8], eax
je 0x1002ae1
push 0x1001280
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10060c4], eax
mov eax, dword [0x10060c4]
cmp eax, ebx
je 0x10031d1
push ebx
push ebx
lea ecx, [ebp - 0x37c]
push ecx
lea ecx, [ebp - 0x384]
push ecx
call eax
jmp 0x10031d1
call fcn.01001934
push dword [0x10060bc]
push ebx
call fcn.01001b9e
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 [0x10060bc]
call esi
push edi
lea eax, [ebp - 0x348]
push eax
push 0x7da
push dword [0x10060bc]
call esi
push 0x10011d4
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002be2
push ebx
push 0x1001470
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [ebp - 0x370], eax
je 0x1002be2
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 0x10031d1
cmp dword [ebp - 0x388], ebx
je 0x1002c85
push str.Address_Book_Viewer
call fcn.01002070
push 0x65
push dword [0x10060bc]
mov esi, eax
mov eax, dword [0x10060c0]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x10020e5
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 [0x10060c0]
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 0x1002d09
mov eax, dword [0x10060c0]
push 0x65
push dword [0x10060bc]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x10020bf
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 [0x10060c0]
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 0x10031d1
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 0x1002d69
push dword [ebp - 0x378]
lea eax, [ebp - 0x374]
push esi
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x36c]
push dword [0x10060bc]
push dword [ebp - 0x370]
call fcn.0100234e
test eax, eax
je 0x10031d1
test byte [ebp - 0x374], 1
je 0x1002e31
push esi
call fcn.01001fa3
mov dword [ebp - 0x394], esi
mov dword [ebp - 0x35c], 0x400000
call fcn.01002861
cmp eax, ebx
mov dword [0x10060b8], eax
je 0x1002dab
push 0x1001280
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10060c4], eax
mov eax, dword [0x10060c4]
cmp eax, ebx
je 0x10031d1
mov dword [ebp - 0x368], 0x20
mov esi, 0x1001288
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 0x1002ebd
cmp eax, 0x80040108
je 0x1002ea6
cmp eax, 0x80040116
je 0x1002e9f
cmp eax, 0x8004011b
je 0x1002e98
cmp eax, 0x80070005
je 0x1002e91
xor ecx, ecx
cmp eax, 0x8007000e
sete cl
dec ecx
and ecx, 0xfffffff7
add ecx, 0x7dc
mov eax, ecx
jmp 0x1002eab
test byte [ebp - 0x373], 1
je 0x1002e45
mov dword [ebp - 0x390], esi
jmp 0x1002d8c
test byte [ebp - 0x373], 0x10
je 0x1002e5f
push esi
call fcn.01001fa3
mov dword [ebp - 0x398], esi
jmp 0x1002d8c
test byte [ebp - 0x372], 1
je 0x1002e7b
and byte [ebp - 0x35a], 0xbf
and byte [ebp - 0x372], 0xfe
jmp 0x1002d8c
push esi
call edi
test eax, eax
je 0x1002d82
mov dword [ebp - 0x360], esi
jmp 0x1002d8c
mov eax, 0x7dd
jmp 0x1002eab
mov eax, 0x7de
jmp 0x1002eab
mov eax, 0x7df
jmp 0x1002eab
mov eax, 0x7e1
push 0x104
lea ecx, [ebp - 0x140]
push ecx
push eax
jmp 0x100318f
mov ecx, dword [ebp - 0x384]
cmp ecx, ebx
je 0x10031e1
mov eax, dword [ebp - 0x374]
cmp eax, ebx
jne 0x100304b
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 0x1002f1f
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], 0x1001f93
mov dword [ebp - 0x3e4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp eax, ebx
jge 0x1002f8d
push 0x104
lea eax, [ebp - 0x140]
push eax
push 0x7e0
jmp 0x100318f
cmp dword [ebp - 0x388], ebx
push ebx
push ebx
lea eax, [ebp - 0x3b4]
push ebx
push eax
je 0x1002ff5
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1002fea
cmp dword [ebp - 0x3e4], ebx
je 0x1002fc6
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x370]
call dword [ebp - 0x3e4]
test eax, eax
jne 0x1002fe0
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 0x1002fa7
jmp 0x10031d1
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x1003040
cmp dword [ebp - 0x3e4], ebx
je 0x100301c
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x370]
call dword [ebp - 0x3e4]
test eax, eax
jne 0x1003036
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 0x1002ffd
jmp 0x10031d1
test al, 0x10
je 0x1003062
mov eax, dword [ebp - 0x37c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x24]
jmp 0x10031d1
test ah, 1
je 0x100315b
call fcn.0100201c
mov esi, eax
mov dword [ebp - 0x374], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, ebx
mov dword [ebp - 0x388], eax
je 0x1003106
mov esi, 0x1001460
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 0x1003106
mov eax, dword [ebp - 0x36c]
cmp word [eax], bx
je 0x1003106
mov eax, dword [ebp - 0x378]
push 0x20
add eax, eax
pop ecx
cmp eax, ecx
ja 0x10030cf
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 0x100313e
add dword [ebp - 0x36c], 2
jne 0x10030b3
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 0x10031d1
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x378]
lea eax, [eax + ecx*2]
cmp eax, ebx
mov dword [ebp - 0x374], eax
je 0x1003106
mov edx, eax
jmp 0x1003112
test al, 1
je 0x10031b9
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 0x10031d1
cmp eax, 0x80040113
je 0x10031d1
push 0x104
lea eax, [ebp - 0x140]
push eax
push 0x7e3
push dword [0x10060bc]
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 0x10031d1
test ah, 0x10
je 0x10031d1
push dword [ebp - 0x398]
push ecx
push dword [ebp - 0x37c]
push ebx
call fcn.010043f8
mov eax, dword [ebp - 0x384]
cmp eax, ebx
je 0x10031e1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x37c]
cmp eax, ebx
je 0x10031f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x38c], ebx
je 0x1003205
push dword [ebp - 0x38c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060b8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x1003217
push eax
call esi
cmp dword [ebp - 0x380], ebx
je 0x100322b
push dword [ebp - 0x380]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060bc]
cmp eax, ebx
je 0x1003237
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3ac]
pop edi
pop esi
pop ebx
call fcn.0100491e
leave
ret 0x10