Function at 0x680045a0
Capabilities:
Get process heap flags
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x828
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp eax, 0x110
je 0x68004600
cmp eax, 0x111
jne 0x680045e8
cmp edx, 1
je 0x680048c0
cmp edx, 2
je 0x68004880
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], 8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetWindowLongW]
mov eax, dword [esi]
sub esp, 0xc
mov edx, dword [eax + 0xc]
test edx, edx
je 0x68004643
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [esi]
sub esp, 0x10
mov edi, dword [eax + 0x10]
test edi, edi
je 0x68004680
mov dword [esp + 4], 0xa28
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [esi]
sub esp, 0x10
test byte [eax + 8], 1
je 0x68004990
mov esi, dword [eax + 0x14]
mov dword [esp + 4], 0xa29
xor edi, edi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x824], eax
sub esp, 8
test ecx, ecx
je 0x680046dd
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], sym._enum_store_callback_20
mov dword [esp + 8], ebx
lea eax, [eax + edi*8]
inc edi
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertEnumSystemStore]
sub esp, 0x10
cmp edi, dword [esi + 8]
jb 0x680046b0
mov edx, dword [esi]
xor ebx, ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x820], eax
test edx, edx
jne 0x68004709
jmp 0x680045e8
inc ebx
cmp ebx, dword [esi]
jae 0x680045e8
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0
lea edi, [ebx*4]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*4]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertGetStoreProperty]
sub esp, 0x10
test eax, eax
je 0x68004700
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x820]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x68004700
lea eax, [ebp - 0x818]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x1000
mov eax, dword [esi + 4]
mov dword [ebp - 0x81c], edx
mov eax, dword [eax + edi]
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CertGetStoreProperty]
mov edx, dword [ebp - 0x81c]
sub esp, 0x10
test eax, eax
jne 0x680047d8
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x68004700
mov eax, dword [ebp - 0x820]
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x81c]
sub esp, 0xc
test eax, eax
je 0x680047a8
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + edi]
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x400], edx
mov dword [eax + 4], ecx
lea eax, [ebp - 0x418]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xffff0002
mov dword [ebp - 0x410], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, dword [ebp - 0x81c]
sub esp, 0x10
jmp 0x680047a8
mov dword [esp], ebx
mov dword [esp + 4], 0xa29
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
call sym._free_store_info
mov dword [esp], ebx
mov dword [esp + 4], 2
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], 0xa29
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [ebp - 0x81c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [ebp - 0x824], eax
mov edi, eax
mov dword [esp + 4], 8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowLongW]
mov dword [ebp - 0x820], eax
sub esp, 8
test edi, edi
jne 0x680049c0
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x68004a96
mov eax, dword [0x68024004]
lea edi, [ebp - 0x418]
mov dword [esp + 0xc], 0x200
mov dword [esp + 8], edi
mov dword [esp + 4], 0x412
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, 1
sub esp, 0x10
jmp 0x680045ea
mov dword [esp + 4], 0xa2a
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [esi]
sub esp, 8
jmp 0x6800468a
xor eax, eax
mov ecx, 8
lea edi, [ebp - 0x810]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x824]
lea edx, [ebp - 0x818]
lea edi, [ebp - 0x418]
mov dword [ebp - 0x818], 0x15
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x804], 0x200
mov dword [ebp - 0x808], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x7f4]
sub esp, 0x10
test eax, eax
je 0x68004ac6
mov esi, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jne 0x68004aff
mov eax, dword [ebp - 0x820]
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x68004a64
mov edx, dword [edx + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call eax
sub esp, 0xc
test eax, eax
je 0x68004ae1
mov eax, dword [ebp - 0x820]
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x81c]
call sym._free_store_info
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
jmp 0x680045ea
mov eax, dword [0x68024004]
lea esi, [ebp - 0x818]
mov dword [esp + 0xc], 0x200
mov dword [esp + 8], esi
mov dword [esp + 4], 0x411
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
jmp 0x68004937
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.crypt32.dll_CertOpenSystemStoreW]
sub esp, 8
mov esi, eax
jmp 0x68004a3e
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.crypt32.dll_CertCloseStore]
mov eax, 1
sub esp, 8
jmp 0x680045ea
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.crypt32.dll_CertOpenSystemStoreW]
sub esp, 8
mov esi, eax
jmp 0x68004a3e