Function at 0x10003250
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, 0x16c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x10006060], 8
jne 0x100033e0
mov eax, dword [ebp + 0x2c]
and eax, 0x40080
cmp eax, 0x80
je 0x10003823
test esi, esi
je 0x10003760
test byte [ebp + 0x2c], 0x40
je 0x1000329b
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x10003760
test byte [ebp + 0x2c], 0x81
je 0x100033a8
mov dword [ebp - 0x138], esi
lea eax, [ebp - 0x138]
test edi, edi
je 0x100034e0
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 8]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x128], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x134], edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x124], ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x130], edx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x120], ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x11c], ecx
test ebx, ebx
je 0x10003998
mov ebx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov edx, dword [ebx]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], edx
mov edi, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [section..bss]
mov dword [esp + 0xc], sym._CredDialogProc_16
mov dword [esp + 8], edi
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
test eax, eax
jle 0x10003838
cmp eax, 2
je 0x10003b40
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp - 0x118]
test edx, edx
je 0x1000337a
mov ebx, dword [ebp + 0x28]
mov dword [ebx], eax
test eax, eax
je 0x10003395
test dword [ebp + 0x2c], 0x20000
jne 0x10003670
test byte [ebp + 0x2c], 2
je 0x10003bd0
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, esi
call sym._find_existing_credential
test eax, eax
jne 0x10003395
mov dword [ebp - 0x138], esi
lea eax, [ebp - 0x138]
test edi, edi
jne 0x100032b9
jmp 0x100034e0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10003b80
mov eax, dword [ebp + 0x18]
shr eax, 0x10
je 0x10003560
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x140], str._invalid_
sub esp, 8
test eax, eax
jne 0x1000357a
mov ebx, dword [ebp + 0x18]
cmp word [ebx], 0
je 0x10003ca0
mov ecx, ebx
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10003430
mov ebx, dword [ebp + 0x18]
mov ecx, 0x224c
mov dword [ebp + 8], edi
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
mov dword [ebp - 0x13c], ebx
jmp 0x10003498
cmp ax, 9
je 0x10003910
cmp ax, 0xa
jne 0x1000392e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x100039c8
lea ebx, [ebp - 0x16]
cmp ecx, ebx
ja 0x100039c8
mov edx, eax
add dword [ebp - 0x13c], 2
mov eax, dword [ebp - 0x13c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x100038f8
jbe 0x10003460
cmp ax, 0x22
je 0x10003980
cmp ax, 0x5c
jne 0x10003921
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10003480
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x124], ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], ebx
test ecx, ecx
je 0x10003ba0
mov ebx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov edx, dword [ebx]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], edx
jmp 0x1000332e
movzx eax, word [ebp + 0x18]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x140], eax
test esi, esi
je 0x10003b90
mov eax, esi
shr eax, 0x10
je 0x10003a08
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x100037a9
cmp word [esi], 0
je 0x10003cc8
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x100035c0
mov eax, 0x224c
mov dword [ebp + 8], edi
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
mov dword [ebp - 0x13c], esi
jmp 0x10003628
cmp ax, 9
je 0x100038e0
cmp ax, 0xa
jne 0x1000385a
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea ebx, [ebp - 0x16]
lea eax, [edx - 1]
cmp ecx, ebx
ja 0x10003778
test edx, edx
jle 0x10003778
mov edx, eax
add dword [ebp - 0x13c], 2
mov eax, dword [ebp - 0x13c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x100038c8
jbe 0x100035f0
cmp ax, 0x22
je 0x100038b0
cmp ax, 0x5c
jne 0x1000384d
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10003610
mov dword [esp], 0x10006040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [0x10006058]
mov dword [ebp - 0x13c], 0
mov eax, dword fs:[0x18]
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [ebp - 0x140], eax
sub esp, 4
cmp edi, 0x10006058
jne 0x100036be
jmp 0x10003bf0
mov edi, dword [edi]
cmp edi, 0x10006058
je 0x10003a48
mov eax, dword [edi + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
test eax, eax
jne 0x100036b0
mov eax, dword [edi + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [edi + 0x10]
sub esp, 0xc
cmp word [eax], 0
je 0x10003727
mov edx, eax
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x10003708
cmp edx, eax
je 0x10003727
lea esi, [esi]
mov ecx, eax
add eax, 1
mov byte [ecx], 0
cmp eax, edx
jne 0x10003718
mov eax, dword [edi + 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 - 0x13c], 1
sub esp, 0xc
jmp 0x100036b0
lea esp, [ebp - 0xc]
mov ebx, 0x57
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x28
mov byte [ecx], 0x22
mov edi, dword [ebp + 8]
test eax, eax
jle 0x10003ce1
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0xc], str.__p___s___p___ld___s___ld___p___ld___p__0x_08lx__n
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], 0x10006060
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], 3
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp + 0x2c]
and eax, 0x40080
cmp eax, 0x80
jne 0x10003282
lea esp, [ebp - 0xc]
mov ebx, 0x3ec
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
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10003a38
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10003610
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10003610
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003610
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003610
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003480
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003480
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10003a28
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefCredUIStoreSSOCredA]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10003480
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10003480
mov dword [ebp - 0x118], 0
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], 0
jmp 0x1000332b
mov byte [ecx], 0x22
mov edi, dword [ebp + 8]
test eax, eax
jle 0x10003cb9
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x140], eax
jmp 0x1000357a
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x100037a9
mov byte [ecx], al
add ecx, 1
jmp 0x10003480
mov byte [ecx], al
add ecx, 1
jmp 0x10003610
mov eax, dword [ebp - 0x13c]
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10003bf0
mov edx, dword [ebp - 0x128]
cmp word [edx], 0
je 0x10003cf3
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x10003a70
sub eax, edx
lea esi, [eax + 2]
mov dword [esp + 8], esi
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 dword [edi + 0xc], eax
mov edx, dword [ebp - 0x128]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp - 0x120]
cmp word [edx], 0
je 0x10003ce9
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003ad0
sub eax, edx
lea esi, [eax + 2]
mov dword [esp + 8], esi
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 dword [edi + 0x10], eax
mov edx, dword [ebp - 0x120]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp + 0x2c]
shr eax, 0x12
and eax, 1
mov dword [edi + 0x14], eax
mov dword [esp], 0x10006040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x10003395
mov ebx, 0x4c7
test byte [0x10006060], 8
je 0x10003397
mov dword [esp + 0xc], str.dialog_cancelled_n
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 4], 0x10006060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10003397
mov dword [ebp - 0x140], str._null_
jmp 0x1000357a
mov edx, str._null_
jmp 0x100037a9
mov dword [ebp - 0x118], 0
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x10c], 0
jmp 0x1000332e
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
shr eax, 0x12
and eax, 1
mov dword [esp], eax
mov eax, esi
call sym._save_credentials
mov ebx, eax
jmp 0x10003397
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
sub esp, 0xc
cmp word [esi], 0
mov edi, eax
mov eax, esi
je 0x10003c3e
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003c30
sub eax, esi
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 - 0x13c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x13c]
sub esp, 0xc
mov dword [edi + 8], eax
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [0x1000605c]
mov dword [edi], 0x10006058
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [0x1000605c], edi
jmp 0x10003a5c
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x100039e6
mov ebx, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], bx
lea eax, [ecx + 1]
jmp 0x10003796
mov esi, 2
jmp 0x10003ade
mov esi, 2
jmp 0x10003a7e