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

Disassembly:
sub esp, 0x5a4
lea eax, [esp + 0x24]
push ebp
push eax
mov eax, dword [0x5bdde8]
xor ebp, ebp
push str.WDigest
mov eax, dword [eax + 0x44]
call eax
test eax, eax
je 0x509d7c
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 [0x5bdde8]
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 0x40]
call eax
push ebx
call dword [0x5b6ea0]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x50a15c
mov ebx, dword [esp + 0x5cc]
mov edx, dword [esp + 0x5bc]
mov ecx, dword [ebx + 0xc]
test edx, edx
je 0x509dca
test ecx, ecx
je 0x509e6d
jmp 0x509dd2
test ecx, ecx
jne 0x509e6d
lea esi, [ebx + 0x10]
mov eax, dword [esi]
cmp dword [esp + 0x5c0], ebp
je 0x509dea
test eax, eax
je 0x509e6d
jmp 0x509dee
test eax, eax
jne 0x509e6d
test edx, edx
je 0x509e26
test ecx, ecx
je 0x509e26
mov bl, byte [edx]
cmp bl, byte [ecx]
jne 0x509e16
test bl, bl
je 0x509e12
mov bl, byte [edx + 1]
cmp bl, byte [ecx + 1]
jne 0x509e16
add edx, 2
add ecx, 2
test bl, bl
jne 0x509df6
xor ecx, ecx
jmp 0x509e1b
sbb ecx, ecx
or ecx, 1
mov ebx, dword [esp + 0x5cc]
test ecx, ecx
jne 0x509e6d
mov ecx, dword [esp + 0x5c0]
mov edi, esi
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x509eaf
mov dword [esp + 0x18], edi
test eax, eax
je 0x509eaf
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x509e60
test dl, dl
je 0x509e5c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x509e60
add ecx, 2
add eax, 2
test dl, dl
jne 0x509e40
xor eax, eax
jmp 0x509e65
sbb eax, eax
or eax, 1
mov dword [esp + 0x18], edi
test eax, eax
je 0x509eaf
mov eax, dword [ebx + 8]
test eax, eax
je 0x509e8e
push eax
mov eax, dword [0x5bdde8]
mov eax, dword [eax + 0x24]
call eax
push dword [ebx + 8]
call dword [0x5b6ea4]
add esp, 4
mov dword [ebx + 8], ebp
push dword [ebx + 0xc]
call dword [0x5b6ea4]
push dword [ebx + 0x10]
lea edi, [ebx + 0x10]
mov dword [ebx + 0xc], ebp
mov dword [esp + 0x20], edi
call dword [0x5b6ea4]
add esp, 8
mov dword [edi], ebp
mov esi, dword [esp + 0x5c4]
cmp dword [ebx + 8], ebp
je 0x509fb6
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 0x509ef4
sub ecx, edx
push ecx
call fcn.004ddc10
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 0x509f22
sub ecx, edx
push ecx
call fcn.004ddc10
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.004ddc10
add esp, 8
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
push 0
push eax
mov eax, dword [0x5bdde8]
push 0
push dword [ebx + 8]
mov eax, dword [eax + 0x38]
call eax
test eax, eax
jne 0x509f85
mov ebp, dword [esp + 0x68]
jmp 0x509fb6
push eax
push str.digest_sspi:_MakeSignature_failed__error_0x_08lx_n
push dword [esp + 0x5c0]
call fcn.004e3a40
mov eax, dword [0x5bdde8]
add esp, 0xc
push dword [ebx + 8]
mov eax, dword [eax + 0x24]
call eax
push dword [ebx + 8]
call dword [0x5b6ea4]
add esp, 4
mov dword [ebx + 8], ebp
cmp dword [ebx + 8], 0
jne 0x50a3eb
push dword [ebx + 0xc]
call dword [0x5b6ea4]
push dword [edi]
mov dword [ebx + 0xc], 0
call dword [0x5b6ea4]
mov ebp, dword [esp + 0x5c4]
add esp, 8
mov dword [edi], 0
test ebp, ebp
je 0x50a138
cmp byte [ebp], 0
je 0x50a138
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x5c4]
push ebp
call fcn.005041c0
add esp, 0xc
test eax, eax
jne 0x50a14f
cmp dword [esp + 0xa0], 0
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
je 0x50a038
cmp dword [esp + 0xa4], 0
jne 0x50a12f
mov cl, byte [eax]
test cl, cl
je 0x50a05f
nop
movzx eax, cl
push eax
call fcn.004fed30
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
je 0x50a05f
inc eax
mov dword [esp + 0x10], eax
mov cl, byte [eax]
test cl, cl
jne 0x50a040
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1b8]
push ecx
lea ecx, [esp + 0xbc]
push ecx
push eax
call fcn.00515840
add esp, 0x10
test al, al
je 0x50a128
lea eax, [esp + 0xb4]
push str.realm
push eax
call fcn.004eb930
add esp, 8
test eax, eax
je 0x50a0ec
lea eax, [esp + 0x1b4]
push eax
call dword [0x5b6eac]
mov esi, eax
add esp, 4
test esi, esi
je 0x50a14f
push dword [esp + 0xa0]
call dword [0x5b6ea4]
add esp, 4
mov dword [esp + 0xa0], esi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50a0d3
sub esi, ecx
push esi
call fcn.004ddc10
add esp, 4
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
test cl, cl
je 0x50a115
movzx eax, cl
push eax
call fcn.004fed30
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
je 0x50a115
inc eax
mov dword [esp + 0x10], eax
mov cl, byte [eax]
test cl, cl
jne 0x50a0f6
cmp byte [eax], 0x2c
jne 0x50a038
inc eax
mov dword [esp + 0x10], eax
jmp 0x50a038
mov esi, dword [esp + 0x5c4]
lea edi, [esp + 0x98]
jmp 0x50a13e
xor edi, edi
test ebp, ebp
je 0x50a16c
push ebp
call dword [0x5b6eac]
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x50a16c
push dword [esp + 0x14]
call dword [0x5b6ea4]
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 0x50a1b8
push eax
call dword [0x5b6eac]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x50a1b8
push dword [esp + 0x14]
call dword [0x5b6ea4]
push dword [ebx + 0xc]
call dword [0x5b6ea4]
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 [0x5bdde8]
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 0x50a206
push edi
call fcn.005042d0
push dword [esp + 0x18]
call dword [0x5b6ea4]
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.004ddc10
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], 3
lea ecx, [esi + 1]
mov dword [esp + 0x4c], esi
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x50a250
sub esi, ecx
push esi
call fcn.004ddc10
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.004ddc10
mov esi, dword [esp + 0x5d0]
add esp, 8
mov dword [esp + 0x80], eax
test esi, esi
jne 0x50a2fd
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5bdde8]
mov eax, dword [eax + 0x10]
call eax
push edi
call fcn.005042d0
push ebp
call dword [0x5b6ea4]
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 [0x5b6eb0]
add esp, 8
mov dword [ebx + 8], eax
test eax, eax
je 0x50a15c
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 [0x5bdde8]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
cmp esi, 0x90313
je 0x50a3b8
cmp esi, 0x90314
je 0x50a3b8
test esi, esi
je 0x50a3cc
cmp esi, 0x90312
je 0x50a3cc
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5bdde8]
mov eax, dword [eax + 0x10]
call eax
push edi
call fcn.005042d0
push ebp
call dword [0x5b6ea4]
push dword [ebx + 8]
call dword [0x5b6ea4]
add esp, 0xc
mov dword [ebx + 8], 0
cmp esi, 0x80090300
mov eax, 0x5e
mov ecx, 0x1b
cmove eax, ecx
pop edi
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 [0x5bdde8]
mov eax, dword [eax + 0x20]
call eax
mov ebp, dword [esp + 0x80]
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x5bdde8]
mov eax, dword [eax + 0x10]
call eax
push edi
call fcn.005042d0
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x5b6ea0]
mov esi, eax
add esp, 4
test esi, esi
je 0x50a14f
mov ebx, dword [esp + 0x14]
push ebp
push ebx
push esi
call fcn.00424ca0
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 [0x5b6ea4]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x5a4
ret