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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x3ec
push ebx
push esi
push edi
xor ebx, ebx
push 0x11
pop ecx
xor eax, eax
mov dword [ebp - 0x78], ebx
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x54], ebx
rep stosd dword es:[edi], eax
mov esi, 0x105
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], ebx
call fcn.01001ddb
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x70]
push eax
mov dword [0x10050b0], eax
call fcn.0100247c
cmp dword [ebp + 0x78], ebx
mov dword [0x10050ac], eax
je 0x1002616
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jle 0x1002616
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp + 0x70], eax
je 0x1002c8c
push 0x100119c
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10026ef
lea eax, [ebp + 0x78]
push eax
push 0x20019
push ebx
push 0x1001450
push 0x80000001
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10026b2
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x58]
push eax
push ebx
push 0x1001444
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10026a4
cmp dword [ebp + 0x78], ebx
je 0x1002c8c
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002c8c
cmp dword [ebp + 0x78], ebx
je 0x10026b2
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0100243d
cmp eax, ebx
mov dword [0x10050a8], eax
je 0x10026d1
push 0x1001210
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050b4], eax
mov eax, dword [0x10050b4]
cmp eax, ebx
je 0x1002c8c
push ebx
push ebx
lea ecx, [ebp + 0x5c]
push ecx
lea ecx, [ebp + 0x54]
push ecx
call eax
jmp 0x1002c8c
call fcn.01001844
push dword [0x10050ac]
push ebx
call fcn.01001a4f
mov eax, dword [ebp + 0x70]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov byte [eax], bl
mov edi, 0x104
push edi
lea eax, [ebp - 0x280]
push eax
push 0x7d1
push dword [0x10050ac]
call esi
push edi
lea eax, [ebp - 0x384]
push eax
push 0x7da
push dword [0x10050ac]
call esi
push 0x1001164
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10027b4
push ebx
push 0x1001434
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [ebp + 0x64], eax
je 0x10027b4
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 + 0x64]
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 + 0x64]
call esi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [ebp + 0x64]
call esi
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x1002c8c
cmp dword [ebp + 0x50], ebx
je 0x1002851
push str.Address_Book_Viewer
call fcn.01001e11
push 0x65
push dword [0x10050ac]
mov esi, eax
mov eax, dword [0x10050b0]
mov dword [ebp + 0x1c], 3
mov dword [ebp + 0x20], 0x1001e75
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [ebp + 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
push dword [0x10050b0]
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 + 0x64], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10028d2
mov eax, dword [0x10050b0]
push 0x65
push dword [0x10050ac]
mov dword [ebp + 0x1c], 3
mov dword [ebp + 0x20], 0x1001e56
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [ebp + 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x1c]
mov esi, str.Address_Book_Viewer
push eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push dword [0x10050b0]
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 + 0x64], eax
mov eax, dword [ebp + 0x64]
cmp eax, ebx
je 0x1002c8c
push dword [ebp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
call edi
test eax, eax
mov esi, dword [ebp + 0x70]
je 0x1002917
push esi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp + 0x78]
push dword [0x10050ac]
push dword [ebp + 0x64]
call fcn.01002043
test eax, eax
je 0x1002c8c
test byte [ebp + 0x60], 1
je 0x10029bf
push esi
call fcn.01001d7a
mov dword [ebp + 0x58], esi
mov dword [ebp - 0x14], 0x400000
call fcn.0100243d
cmp eax, ebx
mov dword [0x10050a8], eax
je 0x1002950
push 0x1001210
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050b4], eax
mov eax, dword [0x10050b4]
cmp eax, ebx
je 0x1002c8c
mov dword [ebp - 0x20], 0x20
mov esi, 0x1001218
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp + 0x5c]
movsd dword es:[edi], dword [esi]
push ecx
lea ecx, [ebp + 0x54]
push ecx
movsd dword es:[edi], dword [esi]
call eax
cmp eax, ebx
jge 0x1002a33
cmp eax, 0x80040108
je 0x1002a1c
cmp eax, 0x80040116
je 0x1002a15
cmp eax, 0x8004011b
je 0x1002a0e
cmp eax, 0x80070005
je 0x1002a07
xor ecx, ecx
cmp eax, 0x8007000e
sete cl
dec ecx
and ecx, 0xfffffff7
add ecx, 0x7dc
mov eax, ecx
jmp 0x1002a21
test byte [ebp + 0x61], 1
je 0x10029cd
mov dword [ebp + 0x44], esi
jmp 0x1002931
test byte [ebp + 0x61], 0x10
je 0x10029e1
push esi
call fcn.01001d7a
mov dword [ebp + 0x48], esi
jmp 0x1002931
test byte [ebp + 0x62], 1
je 0x10029f4
and byte [ebp - 0x12], 0xbf
and byte [ebp + 0x62], 0xfe
jmp 0x1002931
push esi
call edi
test eax, eax
je 0x100292a
mov dword [ebp - 0x18], esi
jmp 0x1002931
mov eax, 0x7dd
jmp 0x1002a21
mov eax, 0x7de
jmp 0x1002a21
mov eax, 0x7df
jmp 0x1002a21
mov eax, 0x7e1
push 0x104
lea ecx, [ebp - 0x17c]
push ecx
push eax
jmp 0x1002c53
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
je 0x1002c99
mov eax, dword [ebp + 0x60]
cmp eax, ebx
jne 0x1002b58
mov esi, dword [ebp + 0x70]
push esi
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002a7d
lea eax, [ebp + 0x78]
push eax
push ebx
lea eax, [ebp + 0x4c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x384]
push eax
push 0x2500
mov dword [ebp + 0x78], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp + 0x4c]
or dword [ebp - 0x44], 0xffffffff
push ebx
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x54]
lea edx, [ebp + 0x64]
push edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], 0x1001d6f
mov dword [ebp - 0x60], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp eax, ebx
jge 0x1002aca
push 0x104
lea eax, [ebp - 0x17c]
push eax
push 0x7e0
jmp 0x1002c53
cmp dword [ebp + 0x50], ebx
push ebx
push ebx
lea eax, [ebp]
push ebx
push eax
je 0x1002b17
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1002b0c
cmp dword [ebp - 0x60], ebx
je 0x1002af1
lea eax, [ebp]
push eax
push dword [ebp + 0x64]
call dword [ebp - 0x60]
test eax, eax
jne 0x1002b05
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp]
push eax
call esi
test eax, eax
jne 0x1002ade
jmp 0x1002c8c
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x1002b4d
cmp dword [ebp - 0x60], ebx
je 0x1002b32
lea eax, [ebp]
push eax
push dword [ebp + 0x64]
call dword [ebp - 0x60]
test eax, eax
jne 0x1002b46
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp]
push eax
call esi
test eax, eax
jne 0x1002b1f
jmp 0x1002c8c
test al, 0x10
je 0x1002b6c
mov eax, dword [ebp + 0x5c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x24]
jmp 0x1002c8c
test ah, 1
je 0x1002c25
call fcn.01001ddb
mov esi, eax
mov dword [ebp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, ebx
mov dword [ebp + 0x50], eax
je 0x1002bee
mov esi, 0x1001424
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x78], eax
lea eax, [ebp - 0x30]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x50], ebx
mov dword [ebp + 0x60], eax
je 0x1002bee
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
je 0x1002bee
mov eax, dword [ebp + 0x60]
mov esi, dword [ebp + 0x78]
add eax, eax
mov ecx, eax
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 - 0x30]
push eax
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1002c14
add dword [ebp + 0x78], 2
jne 0x1002bae
mov eax, dword [ebp + 0x58]
mov edx, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x5c]
mov esi, dword [ecx]
neg eax
push ebx
sbb eax, eax
push edx
and eax, 0x80000000
or eax, 8
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x54]
push ecx
call dword [esi + 0x2c]
jmp 0x1002c8c
mov eax, dword [ebp + 0x78]
mov ecx, dword [ebp + 0x60]
lea eax, [eax + ecx*2]
cmp eax, ebx
je 0x1002bf1
mov edx, eax
jmp 0x1002bf4
test al, 1
je 0x1002c7a
push dword [ebp + 0x58]
mov eax, dword [ebp + 0x5c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x28]
cmp eax, ebx
jge 0x1002c8c
cmp eax, 0x80040113
je 0x1002c8c
push 0x104
lea eax, [ebp - 0x17c]
push eax
push 0x7e3
push dword [0x10050ac]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x17c]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1002c8c
test ah, 0x10
je 0x1002c8c
push dword [ebp + 0x48]
push ecx
push dword [ebp + 0x5c]
push ebx
call fcn.01003dbd
mov eax, dword [ebp + 0x54]
cmp eax, ebx
je 0x1002c99
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x5c]
cmp eax, ebx
je 0x1002ca6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x4c], ebx
je 0x1002cb4
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10050a8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x1002cc6
push eax
call esi
cmp dword [ebp + 0x70], ebx
je 0x1002cd4
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10050ac]
cmp eax, ebx
je 0x1002ce0
push eax
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10