Function at 0x1002864
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.01001f56
mov dword [ebp - 0x388], eax
mov dword [0x10060bc], esi
call fcn.010027ee
cmp dword [ebp - 0x36c], ebx
mov dword [0x10060b8], eax
je 0x100292b
push dword [ebp - 0x36c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
cmp eax, edi
jle 0x100292b
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 0x1003108
push 0x10011bc
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002a3c
lea eax, [ebp - 0x36c]
push eax
push 0x20019
push ebx
push 0x100143c
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 0x10029f9
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x390]
push eax
push ebx
push 0x1001430
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10029e5
cmp dword [ebp - 0x36c], ebx
je 0x1003108
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003108
cmp dword [ebp - 0x36c], ebx
je 0x10029f9
push dword [ebp - 0x36c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01002798
cmp eax, ebx
mov dword [0x10060b4], eax
je 0x1002a18
push 0x1001230
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10060c0], eax
mov eax, dword [0x10060c0]
cmp eax, ebx
je 0x1003108
push ebx
push ebx
lea ecx, [ebp - 0x37c]
push ecx
lea ecx, [ebp - 0x384]
push ecx
call eax
jmp 0x1003108
call fcn.01001874
push dword [0x10060b8]
push ebx
call fcn.01001ade
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 0x1002b19
push ebx
push 0x1001420
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [ebp - 0x370], eax
je 0x1002b19
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 0x1003108
cmp dword [ebp - 0x388], ebx
je 0x1002bbc
push str.Address_Book_Viewer
call fcn.01001faa
push 0x65
push dword [0x10060b8]
mov esi, eax
mov eax, dword [0x10060bc]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x100201f
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 0x1002c40
mov eax, dword [0x10060bc]
push 0x65
push dword [0x10060b8]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x1001ff9
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 0x1003108
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 0x1002ca0
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.01002288
test eax, eax
je 0x1003108
test byte [ebp - 0x374], 1
je 0x1002d68
push esi
call fcn.01001edd
mov dword [ebp - 0x394], esi
mov dword [ebp - 0x35c], 0x400000
call fcn.01002798
cmp eax, ebx
mov dword [0x10060b4], eax
je 0x1002ce2
push 0x1001230
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10060c0], eax
mov eax, dword [0x10060c0]
cmp eax, ebx
je 0x1003108
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 0x1002df4
cmp eax, 0x80040108
je 0x1002ddd
cmp eax, 0x80040116
je 0x1002dd6
cmp eax, 0x8004011b
je 0x1002dcf
cmp eax, 0x80070005
je 0x1002dc8
xor ecx, ecx
cmp eax, 0x8007000e
sete cl
dec ecx
and ecx, 0xfffffff7
add ecx, 0x7dc
mov eax, ecx
jmp 0x1002de2
test byte [ebp - 0x373], 1
je 0x1002d7c
mov dword [ebp - 0x390], esi
jmp 0x1002cc3
test byte [ebp - 0x373], 0x10
je 0x1002d96
push esi
call fcn.01001edd
mov dword [ebp - 0x398], esi
jmp 0x1002cc3
test byte [ebp - 0x372], 1
je 0x1002db2
and byte [ebp - 0x35a], 0xbf
and byte [ebp - 0x372], 0xfe
jmp 0x1002cc3
push esi
call edi
test eax, eax
je 0x1002cb9
mov dword [ebp - 0x360], esi
jmp 0x1002cc3
mov eax, 0x7dd
jmp 0x1002de2
mov eax, 0x7de
jmp 0x1002de2
mov eax, 0x7df
jmp 0x1002de2
mov eax, 0x7e1
push 0x104
lea ecx, [ebp - 0x140]
push ecx
push eax
jmp 0x10030c6
mov ecx, dword [ebp - 0x384]
cmp ecx, ebx
je 0x100311c
mov eax, dword [ebp - 0x374]
cmp eax, ebx
jne 0x1002f82
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 0x1002e56
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], 0x1001ecd
mov dword [ebp - 0x3e4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp eax, ebx
jge 0x1002ec4
push 0x104
lea eax, [ebp - 0x140]
push eax
push 0x7e0
jmp 0x10030c6
cmp dword [ebp - 0x388], ebx
push ebx
push ebx
lea eax, [ebp - 0x3b4]
push ebx
push eax
je 0x1002f2c
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1002f21
cmp dword [ebp - 0x3e4], ebx
je 0x1002efd
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x370]
call dword [ebp - 0x3e4]
test eax, eax
jne 0x1002f17
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 0x1002ede
jmp 0x1003108
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x1002f77
cmp dword [ebp - 0x3e4], ebx
je 0x1002f53
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x370]
call dword [ebp - 0x3e4]
test eax, eax
jne 0x1002f6d
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 0x1002f34
jmp 0x1003108
test al, 0x10
je 0x1002f99
mov eax, dword [ebp - 0x37c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x24]
jmp 0x1003108
test ah, 1
je 0x1003092
call fcn.01001f56
mov esi, eax
mov dword [ebp - 0x374], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, ebx
mov dword [ebp - 0x388], eax
je 0x100303d
mov esi, 0x1001410
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 0x100303d
mov eax, dword [ebp - 0x36c]
cmp word [eax], bx
je 0x100303d
mov eax, dword [ebp - 0x378]
push 0x20
add eax, eax
pop ecx
cmp eax, ecx
ja 0x1003006
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 0x1003075
add dword [ebp - 0x36c], 2
jne 0x1002fea
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 0x1003108
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x378]
lea eax, [eax + ecx*2]
cmp eax, ebx
mov dword [ebp - 0x374], eax
je 0x100303d
mov edx, eax
jmp 0x1003049
test al, 1
je 0x10030f0
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 0x1003108
cmp eax, 0x80040113
je 0x1003108
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 0x1003108
test ah, 0x10
je 0x1003108
push dword [ebp - 0x398]
push ecx
push dword [ebp - 0x37c]
push ebx
call fcn.010043ca
mov ecx, dword [ebp - 0x384]
cmp ecx, ebx
je 0x100311c
mov eax, dword [ecx]
cmp eax, ebx
je 0x100311c
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x37c]
cmp ecx, ebx
je 0x1003130
mov eax, dword [ecx]
cmp eax, ebx
je 0x1003130
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x38c], ebx
je 0x1003144
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 0x1003156
push eax
call esi
cmp dword [ebp - 0x380], ebx
je 0x100316a
push dword [ebp - 0x380]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10060b8]
cmp eax, ebx
je 0x1003176
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3ac]
pop edi
pop esi
pop ebx
call fcn.010048f0
leave
ret 0x10