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

Disassembly:
push ebp
lea ebp, [esp - 0x378]
sub esp, 0x3f8
mov eax, dword [0x10050ac]
push ebx
push esi
push edi
xor ebx, ebx
push 0x11
pop ecx
mov dword [ebp + 0x374], eax
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp + 0x32c], ebx
lea edi, [ebp + 0x330]
mov esi, 0x105
mov dword [ebp + 8], ebx
mov dword [ebp], ebx
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
mov dword [ebp + 4], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.01001eaa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x380]
push eax
mov dword [0x10050b8], eax
call fcn.01002628
cmp dword [ebp + 0x388], ebx
mov dword [0x10050b4], eax
je 0x1002800
push dword [ebp + 0x388]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jle 0x1002800
push dword [ebp + 0x388]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
mov dword [ebp + 4], esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002f0f
push 0x10011bc
push dword [ebp + 0x388]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10028e8
lea eax, [ebp + 0xc]
push eax
push 0x20019
push ebx
push 0x1001470
push 0x80000001
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x380], ebx
mov dword [ebp + 0x388], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10028ab
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x380]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001464
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100289d
cmp dword [ebp + 0xc], ebx
je 0x1002f0f
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002f0f
cmp dword [ebp + 0xc], ebx
je 0x10028ab
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.010025d9
cmp eax, ebx
mov dword [0x10050b0], eax
je 0x10028ca
push 0x1001230
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050bc], eax
mov eax, dword [0x10050bc]
cmp eax, ebx
je 0x1002f0f
push ebx
push ebx
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 8]
push ecx
call eax
jmp 0x1002f0f
call fcn.010018b1
push dword [0x10050b4]
push ebx
call fcn.01001adc
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov byte [eax], bl
mov edi, 0x104
push edi
lea eax, [ebp + 0x114]
push eax
push 0x7d1
push dword [0x10050b4]
call esi
push edi
lea eax, [ebp + 0x10]
push eax
push 0x7da
push dword [0x10050b4]
call esi
push 0x1001184
push dword [ebp + 0x388]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10029ad
push ebx
push 0x1001454
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10029ad
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 + 8]
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 + 8]
call esi
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x1002f0f
cmp dword [ebp - 0xc], ebx
je 0x1002a6b
push str.Address_Book_Viewer
call fcn.01001ef7
push 0x65
push dword [0x10050b4]
mov esi, eax
mov eax, dword [0x10050b8]
mov dword [ebp + 0x34c], 3
mov dword [ebp + 0x350], 0x1001f5b
mov dword [ebp + 0x354], ebx
mov dword [ebp + 0x358], ebx
mov dword [ebp + 0x35c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp + 0x360], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [ebp + 0x364], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp + 0x368], eax
lea eax, [ebp + 0x34c]
push eax
mov dword [ebp + 0x36c], esi
mov dword [ebp + 0x370], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
push ebx
push dword [0x10050b8]
push ebx
push ebx
push pe_nt_image_headers32
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 + 8], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1002b0d
mov eax, dword [0x10050b8]
push 0x65
push dword [0x10050b4]
mov dword [ebp + 0x34c], 3
mov dword [ebp + 0x350], 0x1001f3c
mov dword [ebp + 0x354], ebx
mov dword [ebp + 0x358], ebx
mov dword [ebp + 0x35c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp + 0x360], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
mov dword [ebp + 0x364], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp + 0x368], eax
lea eax, [ebp + 0x34c]
mov esi, str.Address_Book_Viewer
push eax
mov dword [ebp + 0x36c], esi
mov dword [ebp + 0x370], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
push ebx
push dword [0x10050b8]
push ebx
push ebx
push pe_nt_image_headers32
push 0x12c
push ebx
push ebx
push 0xcf0000
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1002f0f
push dword [ebp + 0x388]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 0x330], eax
call edi
test eax, eax
mov esi, dword [ebp - 4]
je 0x1002b5e
push dword [ebp + 4]
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp + 0x114]
push eax
push dword [ebp + 0x388]
push dword [0x10050b4]
push dword [ebp + 8]
call fcn.01002169
test eax, eax
je 0x1002f0f
test byte [ebp + 0xc], 1
je 0x1002c16
push esi
call fcn.01001e38
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x338], 0x400000
call fcn.010025d9
cmp eax, ebx
mov dword [0x10050b0], eax
je 0x1002b9a
push 0x1001230
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10050bc], eax
mov eax, dword [0x10050bc]
cmp eax, ebx
je 0x1002f0f
mov dword [ebp + 0x32c], 0x20
mov esi, 0x1001238
lea edi, [ebp + 0x33c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp + 0x32c]
push ecx
lea ecx, [ebp]
movsd dword es:[edi], dword [esi]
push ecx
lea ecx, [ebp - 8]
push ecx
movsd dword es:[edi], dword [esi]
call eax
cmp eax, ebx
jge 0x1002c90
cmp eax, 0x80040108
je 0x1002c79
cmp eax, 0x80040116
je 0x1002c72
cmp eax, 0x8004011b
je 0x1002c6b
cmp eax, 0x80070005
je 0x1002c64
xor ecx, ecx
cmp eax, 0x8007000e
sete cl
dec ecx
and ecx, 0xfffffff7
add ecx, 0x7dc
mov eax, ecx
jmp 0x1002c7e
test byte [ebp + 0xd], 1
je 0x1002c24
mov dword [ebp - 0x1c], esi
jmp 0x1002b7b
test byte [ebp + 0xd], 0x10
je 0x1002c38
push esi
call fcn.01001e38
mov dword [ebp - 0x14], esi
jmp 0x1002b7b
test byte [ebp + 0xe], 1
je 0x1002c4e
and byte [ebp + 0x33a], 0xbf
and byte [ebp + 0xe], 0xfe
jmp 0x1002b7b
push esi
call edi
test eax, eax
je 0x1002b71
mov dword [ebp + 0x334], esi
jmp 0x1002b7b
mov eax, 0x7dd
jmp 0x1002c7e
mov eax, 0x7de
jmp 0x1002c7e
mov eax, 0x7df
jmp 0x1002c7e
mov eax, 0x7e1
push 0x104
lea ecx, [ebp + 0x218]
push ecx
push eax
jmp 0x1002ed6
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x1002f1c
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x1002db2
mov esi, dword [ebp - 4]
push esi
mov dword [ebp + 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002cd7
lea eax, [ebp + 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push 0x2500
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x4c], 0xffffffff
push ebx
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 8]
lea edx, [ebp + 8]
push edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], 0x1001e2d
mov dword [ebp - 0x68], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp eax, ebx
jge 0x1002d24
push 0x104
lea eax, [ebp + 0x218]
push eax
push 0x7e0
jmp 0x1002ed6
cmp dword [ebp - 0xc], ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push ebx
push eax
je 0x1002d71
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1002d66
cmp dword [ebp - 0x68], ebx
je 0x1002d4b
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [ebp - 0x68]
test eax, eax
jne 0x1002d5f
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x1002d38
jmp 0x1002f0f
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x1002da7
cmp dword [ebp - 0x68], ebx
je 0x1002d8c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [ebp - 0x68]
test eax, eax
jne 0x1002da0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x1002d79
jmp 0x1002f0f
test al, 0x10
je 0x1002dc6
mov eax, dword [ebp]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x24]
jmp 0x1002f0f
test ah, 1
je 0x1002ea8
call fcn.01001eaa
mov esi, eax
mov dword [ebp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp esi, ebx
mov dword [ebp - 0xc], eax
je 0x1002e6b
mov esi, 0x1001444
lea edi, [ebp + 0x31c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0x31c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 0xc], ebx
mov dword [ebp + 0x388], eax
je 0x1002e6b
mov eax, dword [ebp + 0xc]
cmp word [eax], bx
je 0x1002e6b
mov eax, dword [ebp + 0x388]
push 0x20
add eax, eax
pop ecx
cmp eax, ecx
ja 0x1002e2e
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x354]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebp + eax + 0x354], bx
lea eax, [ebp + 0x31c]
push eax
lea eax, [ebp + 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1002e91
add dword [ebp + 0xc], 2
jne 0x1002e15
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov esi, dword [ecx]
neg eax
push ebx
sbb eax, eax
push edx
and eax, 0x80000000
or eax, 8
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push ecx
call dword [esi + 0x2c]
jmp 0x1002f0f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x388]
lea eax, [eax + ecx*2]
cmp eax, ebx
mov dword [ebp + 4], eax
je 0x1002e6b
mov edx, eax
jmp 0x1002e71
test al, 1
je 0x1002efd
push dword [ebp - 0x18]
mov eax, dword [ebp]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x28]
cmp eax, ebx
jge 0x1002f0f
cmp eax, 0x80040113
je 0x1002f0f
push 0x104
lea eax, [ebp + 0x218]
push eax
push 0x7e3
push dword [0x10050b4]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp + 0x114]
push eax
lea eax, [ebp + 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1002f0f
test ah, 0x10
je 0x1002f0f
push dword [ebp - 0x14]
push ecx
push dword [ebp]
push ebx
call fcn.01004061
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1002f1c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp]
cmp eax, ebx
je 0x1002f29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], ebx
je 0x1002f37
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10050b0]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x1002f49
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x1002f57
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10050b4]
cmp eax, ebx
je 0x1002f63
push eax
call esi
mov ecx, dword [ebp + 0x374]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
call fcn.0100448b
add ebp, 0x378
leave
ret 0x10