Function at 0x10002ae0
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x70
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x2c]
test byte [0x10006018], 8
jne 0x10002c40
mov eax, edi
and eax, 0x40080
cmp eax, 0x80
je 0x10002cc3
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10002e10
test edi, 0x40
je 0x10002b2c
test esi, esi
je 0x10002e10
test edi, 0x81
je 0x10002c08
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
test ebx, ebx
je 0x10002cd8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x38], edx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x34], edx
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], ecx
test esi, esi
je 0x10002e40
mov edx, dword [esi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0
mov ebx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [0x100060a8]
mov dword [esp + 0xc], sym._CredDialogProc_16
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
test eax, eax
jle 0x10002e28
cmp eax, 2
je 0x10002f58
mov eax, dword [ebp - 0x1c]
test esi, esi
je 0x10002bd7
mov dword [esi], eax
test eax, eax
je 0x10002bf3
test edi, 0x20000
jne 0x10002d30
test edi, 2
je 0x10002fb8
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
call sym._find_existing_credential
test eax, eax
jne 0x10002bf3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
test ebx, ebx
jne 0x10002b49
jmp 0x10002cd8
mov eax, dword [ebp + 0x18]
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0xc], str.__p___s___p___ld___s___ld___p___ld___p__0x_08lx__n
mov dword [esp + 0x20], ecx
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
call sym._wine_dbg_log.constprop.0
mov eax, edi
and eax, 0x40080
cmp eax, 0x80
jne 0x10002b11
lea esp, [ebp - 0xc]
mov ebx, 0x3ec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x20], ecx
test esi, esi
je 0x10002f98
mov edx, dword [esi]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0
jmp 0x10002b94
mov dword [esp], 0x10006080
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [0x10006160]
mov dword [ebp - 0x40], 0
mov eax, dword fs:[0x18]
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [ebp - 0x44], eax
sub esp, 4
cmp esi, 0x10006160
je 0x10002fe0
mov dword [ebp + 0x2c], edi
mov edi, dword [ebp + 0xc]
jmp 0x10002d7e
mov esi, dword [esi]
cmp esi, 0x10006160
je 0x10002e60
mov eax, dword [esi + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call ebx
sub esp, 8
test eax, eax
jne 0x10002d70
mov eax, dword [esi + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x10]
sub esp, 0xc
cmp word [eax], 0
je 0x10002ddd
mov edx, eax
add edx, 2
cmp word [edx], 0
jne 0x10002dc0
cmp eax, edx
je 0x10002ddd
lea esi, [esi]
mov ecx, eax
inc eax
mov byte [ecx], 0
cmp eax, edx
jne 0x10002dd0
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x40], 1
sub esp, 0xc
jmp 0x10002d70
lea esp, [ebp - 0xc]
mov ebx, 0x57
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x10002b91
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp + 0x2c]
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10002fe0
mov edx, dword [ebp - 0x2c]
cmp word [edx], 0
je 0x10003090
mov eax, edx
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x10002e88
sub eax, edx
lea edx, [eax + 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x40]
sub esp, 0xc
mov dword [esi + 0xc], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov edx, dword [ebp - 0x24]
cmp word [edx], 0
je 0x10003086
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10002ee8
sub eax, edx
lea edx, [eax + 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x40]
sub esp, 0xc
mov dword [esi + 0x10], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov eax, edi
shr eax, 0x12
and eax, 1
mov dword [esi + 0x14], eax
mov dword [esp], 0x10006080
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x10002bf3
mov ebx, 0x4c7
test byte [0x10006018], 8
je 0x10002bf5
mov dword [esp + 0xc], str.dialog_cancelled_n
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10002bf5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x10002b94
mov eax, edi
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
shr eax, 0x12
and eax, 1
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
call sym._save_credentials
mov ebx, eax
jmp 0x10002bf5
mov dword [esp + 8], 0x18
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
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 ebx
mov edx, 2
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp word [eax], 0
je 0x1000302f
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003020
sub eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esi + 8], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [0x10006164]
mov dword [esi], 0x10006160
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x10006164], esi
jmp 0x10002e74
mov edx, 2
jmp 0x10002ef6
mov edx, 2
jmp 0x10002e96