Function at 0x496570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5a4
lea eax, [esp + 0x24]
push ebp
push eax
mov eax, dword [0x5a17a0]
xor ebp, ebp
push str.WDigest
mov eax, dword [eax + 0x44]
call eax
test eax, eax
je 0x49659c
lea eax, [ebp + 4]
pop ebp
add esp, 0x5a4
ret
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
mov ebx, dword [eax + 8]
push eax
mov eax, dword [0x5a17a0]
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 0x40]
call eax
push ebx
call dword [0x59c9a4]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x49697c
mov ebx, dword [esp + 0x5cc]
mov edx, dword [esp + 0x5bc]
mov ecx, dword [ebx + 0xc]
test edx, edx
je 0x4965ea
test ecx, ecx
je 0x49668d
jmp 0x4965f2
test ecx, ecx
jne 0x49668d
lea esi, [ebx + 0x10]
mov eax, dword [esi]
cmp dword [esp + 0x5c0], ebp
je 0x49660a
test eax, eax
je 0x49668d
jmp 0x49660e
test eax, eax
jne 0x49668d
test edx, edx
je 0x496646
test ecx, ecx
je 0x496646
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x496636
test bl, bl
je 0x496632
mov bl, byte [edx + 1]
cmp bl, byte [ecx + 1]
jne 0x496636
add edx, 2
add ecx, 2
test bl, bl
jne 0x496616
xor ecx, ecx
jmp 0x49663b
sbb ecx, ecx
or ecx, 1
mov ebx, dword [esp + 0x5cc]
test ecx, ecx
jne 0x49668d
mov ecx, dword [esp + 0x5c0]
mov edi, esi
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x4966cf
mov dword [esp + 0x18], edi
test eax, eax
je 0x4966cf
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x496680
test dl, dl
je 0x49667c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x496680
add ecx, 2
add eax, 2
test dl, dl
jne 0x496660
xor eax, eax
jmp 0x496685
sbb eax, eax
or eax, 1
mov dword [esp + 0x18], edi
test eax, eax
je 0x4966cf
mov eax, dword [ebx + 8]
test eax, eax
je 0x4966ae
push eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x24]
call eax
push dword [ebx + 8]
call dword [0x59c9a8]
add esp, 4
mov dword [ebx + 8], ebp
push dword [ebx + 0xc]
call dword [0x59c9a8]
push dword [ebx + 0x10]
lea edi, [ebx + 0x10]
mov dword [ebx + 0xc], ebp
mov dword [esp + 0x20], edi
call dword [0x59c9a8]
add esp, 8
mov dword [edi], ebp
mov esi, dword [esp + 0x5c4]
cmp dword [ebx + 8], ebp
je 0x4967d6
mov ecx, esi
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x38]
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], ebp
lea edx, [ecx + 1]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496714
sub ecx, edx
push ecx
call fcn.00479470
mov dword [esp + 0x48], eax
add esp, 4
mov eax, dword [esp + 0x5c8]
mov ecx, eax
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496742
sub ecx, edx
push ecx
call fcn.00479470
push dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], 3
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x74], 9
mov dword [esp + 0x78], eax
call fcn.00479470
add esp, 8
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
push 0
push eax
mov eax, dword [0x5a17a0]
push 0
push dword [ebx + 8]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
jne 0x4967a5
mov ebp, dword [esp + 0x68]
jmp 0x4967d6
push eax
push str.digest_sspi:_MakeSignature_failed__error_0x_08lx_n
push dword [esp + 0x5c0]
call fcn.00477080
mov eax, dword [0x5a17a0]
add esp, 0xc
push dword [ebx + 8]
mov eax, dword [eax + 0x24]
call eax
push dword [ebx + 8]
call dword [0x59c9a8]
add esp, 4
mov dword [ebx + 8], ebp
cmp dword [ebx + 8], 0
jne 0x496c08
push dword [ebx + 0xc]
call dword [0x59c9a8]
push dword [edi]
mov dword [ebx + 0xc], 0
call dword [0x59c9a8]
mov ebp, dword [esp + 0x5c4]
add esp, 8
mov dword [edi], 0
test ebp, ebp
je 0x496958
cmp byte [ebp], 0
je 0x496958
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x5c4]
push ebp
call fcn.00497210
add esp, 0xc
test eax, eax
jne 0x49696f
cmp dword [esp + 0xa0], 0
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
je 0x496858
cmp dword [esp + 0xa4], 0
jne 0x49694f
mov cl, byte [eax]
test cl, cl
je 0x49687f
mov edi, edi
movzx eax, cl
push eax
call fcn.00487be0
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
je 0x49687f
inc eax
mov dword [esp + 0x10], eax
mov cl, byte [eax]
test cl, cl
jne 0x496860
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1b8]
push ecx
lea ecx, [esp + 0xbc]
push ecx
push eax
call fcn.004a0a20
add esp, 0x10
test al, al
je 0x496948
lea eax, [esp + 0xb4]
push str.realm
push eax
call fcn.0047a510
add esp, 8
test eax, eax
je 0x49690c
lea eax, [esp + 0x1b4]
push eax
call dword [0x59c9b0]
mov esi, eax
add esp, 4
test esi, esi
je 0x49696f
push dword [esp + 0xa0]
call dword [0x59c9a8]
add esp, 4
mov dword [esp + 0xa0], esi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4968f3
sub esi, ecx
push esi
call fcn.00479470
add esp, 4
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
test cl, cl
je 0x496935
movzx eax, cl
push eax
call fcn.00487be0
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
je 0x496935
inc eax
mov dword [esp + 0x10], eax
mov cl, byte [eax]
test cl, cl
jne 0x496916
cmp byte [eax], 0x2c
jne 0x496858
inc eax
mov dword [esp + 0x10], eax
jmp 0x496858
mov esi, dword [esp + 0x5c4]
lea edi, [esp + 0x98]
jmp 0x49695e
xor edi, edi
test ebp, ebp
je 0x49698c
push ebp
call dword [0x59c9b0]
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x49698c
push dword [esp + 0x14]
call dword [0x59c9a8]
add esp, 4
pop edi
pop esi
pop ebx
mov eax, 0x1b
pop ebp
add esp, 0x5a4
ret
mov eax, dword [esp + 0x5c0]
test eax, eax
je 0x4969d8
push eax
call dword [0x59c9b0]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4969d8
push dword [esp + 0x14]
call dword [0x59c9a8]
push dword [ebx + 0xc]
call dword [0x59c9a8]
add esp, 8
mov dword [ebx + 0xc], 0
mov eax, 0x1b
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x5a4
ret
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x5a17a0]
push 0
push 0
push edi
mov eax, dword [eax + 0xc]
push 0
push 2
push str.WDigest
push 0
call eax
test eax, eax
je 0x496a26
push edi
call fcn.00497310
push dword [esp + 0x18]
call dword [0x59c9a8]
add esp, 8
mov eax, 0x43
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x5a4
ret
push dword [ebx + 4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov dword [esp + 0x30], 3
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], eax
call fcn.00479470
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], 3
lea ecx, [esi + 1]
mov dword [esp + 0x4c], esi
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x496a70
sub esi, ecx
push esi
call fcn.00479470
push dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x5c], 3
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], 2
mov dword [esp + 0x90], ebp
call fcn.00479470
mov esi, dword [esp + 0x5d0]
add esp, 8
mov dword [esp + 0x80], eax
test esi, esi
jne 0x496b1d
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x10]
call eax
push edi
call fcn.00497310
push ebp
call dword [0x59c9a8]
add esp, 8
lea eax, [esi + 0x1b]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x5a4
ret
push 8
push 1
call dword [0x59c9b4]
add esp, 8
mov dword [ebx + 8], eax
test eax, eax
je 0x49697c
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x1000000
push esi
push 0
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
cmp esi, 0x90313
je 0x496bd5
cmp esi, 0x90314
je 0x496bd5
test esi, esi
je 0x496be9
cmp esi, 0x90312
je 0x496be9
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x10]
call eax
push edi
call fcn.00497310
push ebp
call dword [0x59c9a8]
push dword [ebx + 8]
call dword [0x59c9a8]
add esp, 0xc
mov dword [ebx + 8], 0
sub esi, 0x80090300
neg esi
sbb esi, esi
and esi, 0x43
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
pop ebp
add esp, 0x5a4
ret
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x20]
call eax
mov ebp, dword [esp + 0x80]
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5a17a0]
mov eax, dword [eax + 0x10]
call eax
push edi
call fcn.00497310
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x59c9a4]
mov esi, eax
add esp, 4
test esi, esi
je 0x49696f
mov ebx, dword [esp + 0x14]
push ebp
push ebx
push esi
call fcn.00439170
mov eax, dword [esp + 0x5dc]
mov byte [esi + ebp], 0
push ebx
mov dword [eax], esi
mov eax, dword [esp + 0x5e4]
mov dword [eax], ebp
call dword [0x59c9a8]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x5a4
ret