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

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, 0x1a0
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x164], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x168], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x154], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x15c], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x160], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x150], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x14c], eax
test byte [0x10007060], 8
jne 0x10003548
mov esi, dword [ebp - 0x14c]
mov eax, esi
and eax, 0x40080
cmp eax, 0x80
je 0x10003a40
test edi, edi
je 0x100038c0
and esi, 0x40
je 0x100033d4
mov ecx, dword [ebp - 0x150]
test ecx, ecx
je 0x100038c0
test byte [ebp - 0x14c], 0x81
je 0x10003500
mov dword [ebp - 0x148], edi
lea eax, [ebp - 0x148]
test ebx, ebx
je 0x10003640
mov esi, dword [ebp - 0x15c]
movd xmm1, dword [ebx + 0x10]
movd xmm2, dword [ebp - 0x154]
movd xmm0, dword [ebx + 8]
mov dword [ebp - 0x134], esi
movd xmm3, dword [ebx + 0xc]
mov esi, dword [ebp - 0x158]
mov edx, dword [ebp - 0x160]
punpckldq xmm1, xmm2
punpckldq xmm0, xmm3
mov dword [ebp - 0x130], esi
mov esi, dword [ebp - 0x150]
punpcklqdq xmm0, xmm1
mov dword [ebp - 0x12c], edx
xor edx, edx
movups xmmword [ebp - 0x144], xmm0
test esi, esi
je 0x10003451
mov edx, dword [esi]
mov esi, dword [ebp - 0x14c]
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x120], 0
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x11c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._CredDialogProc_16
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x64
mov eax, dword [section..bss]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
test eax, eax
jle 0x10003990
cmp eax, 2
je 0x10003c90
mov ebx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x128]
test ebx, ebx
je 0x100034c6
mov dword [ebx], eax
test eax, eax
je 0x100034e7
test dword [ebp - 0x14c], 0x20000
jne 0x100037d0
test byte [ebp - 0x14c], 2
je 0x10003ce0
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x28
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
mov ecx, dword [ebp - 0x15c]
mov eax, edi
mov edx, dword [ebp - 0x154]
call sym._find_existing_credential
test eax, eax
jne 0x100034e7
mov dword [ebp - 0x148], edi
lea eax, [ebp - 0x148]
test ebx, ebx
jne 0x100033f5
jmp 0x10003640
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x10003cb8
shr eax, 0x10
je 0x100036d0
mov dword [esp + 4], 0xffffffff
mov esi, dword [ebp - 0x154]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x16c], str._invalid_
sub esp, 8
test eax, eax
jne 0x100036ec
cmp word [esi], 0
mov ecx, esi
je 0x10003e40
lea esi, cs:[esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x100035a0
mov esi, 0x224c
mov dword [ebp - 0x16c], ebx
lea eax, [ebp - 0x146]
mov word [ebp - 0x148], si
mov esi, dword [ebp - 0x154]
jmp 0x10003604
cmp cx, 9
je 0x10003a28
cmp cx, 0xa
jne 0x10003a70
mov ecx, 0x6e5c
add eax, 2
mov word [eax - 2], cx
sub edx, 1
jb 0x10003e08
lea ecx, [ebp - 0x26]
cmp ecx, eax
jb 0x10003b50
movzx ecx, word [esi]
add esi, 2
cmp cx, 0xd
je 0x10003a10
jbe 0x100035d0
cmp cx, 0x22
je 0x100039f8
cmp cx, 0x5c
jne 0x10003b38
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
jmp 0x100035f0
mov edx, dword [ebp - 0x154]
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x138], edx
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x134], edx
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x130], edx
mov edx, dword [ebp - 0x150]
test edx, edx
je 0x10003cd0
mov esi, dword [ebp - 0x150]
mov edx, dword [esi]
mov dword [ebp - 0x128], edx
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x11c], 0
jmp 0x1000347a
mov eax, dword [ebp - 0x154]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x16c], eax
test edi, edi
je 0x10003ca8
mov eax, edi
shr eax, 0x10
je 0x10003a58
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x1000390a
cmp word [edi], 0
je 0x10003e20
lea esi, [esi]
mov eax, edx
lea edx, [edx + 1]
cmp word [edi + eax*2 + 2], 0
jne 0x10003730
mov esi, 0x224c
mov dword [ebp - 0x170], ebx
lea edx, [ebp - 0x146]
mov word [ebp - 0x148], si
mov esi, edi
jmp 0x10003794
cmp cx, 9
je 0x100039e0
cmp cx, 0xa
jne 0x10003ae0
mov ecx, 0x6e5c
add edx, 2
mov word [edx - 2], cx
sub eax, 1
jb 0x10003df0
lea ecx, [ebp - 0x26]
cmp ecx, edx
jb 0x100038d8
movzx ecx, word [esi]
add esi, 2
cmp cx, 0xd
je 0x100039c8
jbe 0x10003760
cmp cx, 0x22
je 0x100039b0
cmp cx, 0x5c
jne 0x10003ac8
mov ecx, 0x5c5c
add edx, 2
mov word [edx - 2], cx
jmp 0x10003780
mov dword [esp], 0x10007040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [0x10007058]
mov ebx, dword [sym.imp.kernel32.dll_lstrcmpW]
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [ebp - 0x154], eax
cmp esi, 0x10007058
je 0x10003d40
mov dword [ebp - 0x150], edx
jmp 0x1000381e
mov esi, dword [esi]
cmp esi, 0x10007058
je 0x10003b90
mov eax, dword [esi + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call ebx
sub esp, 8
test eax, eax
jne 0x10003810
mov eax, dword [esi + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x154]
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 0x10003887
mov ecx, eax
lea esi, cs:[esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10003868
cmp eax, ecx
je 0x10003887
lea esi, [esi]
mov edx, eax
add eax, 1
mov byte [edx], 0
cmp eax, ecx
jne 0x10003878
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x150], 1
sub esp, 0xc
jmp 0x10003810
lea esp, [ebp - 0x10]
mov eax, 0x57
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x28
mov byte [edx], 0x22
mov ebx, dword [ebp - 0x170]
test eax, eax
je 0x10003df9
mov esi, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x148]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, dword [ebp - 0x14c]
mov dword [esp + 0x34], edx
mov esi, dword [ebp - 0x150]
mov dword [esp + 0x30], esi
mov edx, dword [ebp - 0x160]
mov dword [esp + 0x2c], edx
mov esi, dword [ebp - 0x158]
mov dword [esp + 0x28], esi
mov edx, dword [ebp - 0x15c]
mov dword [esp + 0x24], edx
mov esi, dword [ebp - 0x16c]
mov dword [esp + 0x20], esi
mov edx, dword [ebp - 0x168]
mov dword [esp + 0x1c], edx
mov esi, dword [ebp - 0x164]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___s___p___ld___s___ld___p___ld___p__0x_08lx__n
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 4], 0x10007060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x100033a1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x28
movzx ebx, word [0x1000956a]
add edx, 2
mov word [edx - 2], bx
jmp 0x10003780
movzx ebx, word [str._r_]
add edx, 2
mov word [edx - 2], bx
jmp 0x10003780
mov ebx, 0x745c
add edx, 2
mov word [edx - 2], bx
jmp 0x10003780
movzx ebx, word [0x1000956a]
add eax, 2
mov word [eax - 2], bx
jmp 0x100035f0
movzx ebx, word [str._r_]
add eax, 2
mov word [eax - 2], bx
jmp 0x100035f0
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x100035f0
lea esp, [ebp - 0x10]
mov eax, 0x3ec
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x28
mov dword [esp + 4], edi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x1000390a
mov ebx, ecx
mov byte [eax], 0x5c
add eax, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 4], bl
mov ebx, ecx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 3], bl
mov ebx, ecx
and ecx, 0xf
shr bx, 4
movzx ecx, byte [ecx + str.0123456789abcdefCredUIStoreSSOCredA]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x100035f0
lea ebx, [ecx - 0x20]
cmp bx, 0x5e
ja 0x10003ae0
mov byte [edx], cl
add edx, 1
jmp 0x10003780
mov ebx, ecx
mov byte [edx], 0x5c
add edx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [edx - 4], bl
mov ebx, ecx
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [edx - 3], bl
mov ebx, ecx
and ecx, 0xf
shr bx, 4
movzx ecx, byte [ecx + str.0123456789abcdefCredUIStoreSSOCredA]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefCredUIStoreSSOCredA]
mov byte [edx - 1], cl
mov byte [edx - 2], bl
jmp 0x10003780
lea ebx, [ecx - 0x20]
cmp bx, 0x5e
ja 0x10003a70
mov byte [eax], cl
add eax, 1
jmp 0x100035f0
mov byte [eax], 0x22
mov ebx, dword [ebp - 0x16c]
test edx, edx
je 0x10003e11
mov byte [eax + 3], 0x2e
mov edx, 0x2e2e
mov word [eax + 1], dx
lea edx, [eax + 4]
lea eax, [ebp - 0x148]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x16c], eax
jmp 0x100036ec
mov edx, dword [ebp - 0x150]
test edx, edx
je 0x10003d40
mov ebx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x138]
cmp word [edx], 0
je 0x10003e68
mov eax, edx
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10003bc0
sub eax, edx
lea edi, [eax + 2]
mov dword [esp + 8], edi
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
sub esp, 0xc
mov dword [esi + 0xc], eax
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x138]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov edx, dword [ebp - 0x130]
cmp word [edx], 0
je 0x10003e5e
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003c20
sub eax, edx
lea edi, [eax + 2]
mov dword [esp + 8], edi
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
sub esp, 0xc
mov dword [esi + 0x10], eax
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x130]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
mov eax, dword [ebp - 0x14c]
shr eax, 0x12
and eax, 1
mov dword [esi + 0x14], eax
mov dword [esp], 0x10007040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x100034e7
test byte [0x10007060], 8
jne 0x10003d10
mov eax, 0x4c7
jmp 0x100034e9
mov eax, str._null_
jmp 0x1000390a
mov dword [ebp - 0x16c], str._null_
jmp 0x100036ec
xor edx, edx
jmp 0x100036a4
mov eax, dword [ebp - 0x14c]
shr eax, 0x12
and eax, 1
mov dword [esp], eax
mov ecx, dword [ebp - 0x158]
mov eax, edi
mov edx, dword [ebp - 0x154]
call sym._save_credentials
jmp 0x100034e9
mov dword [esp + 0xc], str.dialog_cancelled_n
mov dword [esp + 8], str.CredUIPromptForCredentialsW
mov dword [esp + 4], 0x10007060
mov dword [esp], 3
call sym._wine_dbg_log.constprop.1
jmp 0x10003c99
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 [edi], 0
mov esi, eax
mov eax, edi
je 0x10003d8e
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003d80
sub eax, edi
lea edx, [eax + 2]
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x150], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x150]
sub esp, 0xc
mov dword [esi + 8], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [0x1000705c]
mov dword [esi], 0x10007058
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x1000705c], esi
jmp 0x10003ba4
mov byte [edx], 0x22
mov ebx, dword [ebp - 0x170]
lea eax, [edx + 1]
jmp 0x100038f9
mov byte [eax], 0x22
mov ebx, dword [ebp - 0x16c]
lea edx, [eax + 1]
jmp 0x10003b71
mov eax, 0x224c
mov byte [ebp - 0x146], 0x22
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x145]
jmp 0x100038f9
mov eax, 0x224c
mov byte [ebp - 0x146], 0x22
lea edx, [ebp - 0x145]
mov word [ebp - 0x148], ax
jmp 0x10003b71
mov edi, 2
jmp 0x10003c2e
mov edi, 2
jmp 0x10003bce