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

Disassembly:
sub esp, 0x50
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, dword [esp + 0x78]
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
lea ebp, [ebx + 1]
cmp dword [esi], ebx
jne 0x50a0be
mov ecx, dword [0x5c27a0]
mov edx, dword [ecx + 0x44]
lea eax, [esp + 0x7c]
push eax
push str.Kerberos
call edx
test eax, eax
je 0x509fd8
pop edi
pop esi
pop ebp
lea eax, [ebx + 4]
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 8]
mov dword [esi + 0x2c], ecx
mov edx, dword [0x5c27a0]
push eax
mov eax, dword [edx + 0x40]
call eax
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x98]
push eax
mov eax, dword [esp + 0x74]
push eax
push str._s__s
call fcn.004e8f70
add esp, 0xc
mov dword [esi + 8], eax
cmp eax, ebx
je 0x50a056
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x50a063
cmp byte [eax], bl
je 0x50a063
mov ecx, dword [esp + 0x6c]
lea edi, [esi + 0xc]
push edi
push ecx
push eax
call fcn.004d9290
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x50a26b
mov edx, dword [esi + 0x2c]
push edx
mov dword [esi + 0x28], edi
call dword [0x5ba01c]
add esp, 4
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x50a066
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x50
ret
mov dword [esi + 0x28], ebx
push 8
call dword [0x5ba01c]
add esp, 4
mov dword [esi], eax
cmp eax, ebx
je 0x50a056
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esi]
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x5c27a0]
push ecx
mov ecx, dword [eax + 0xc]
push ebx
push ebx
push edx
push ebx
push 2
push str.Kerberos
push ebx
call ecx
test eax, eax
jne 0x50a056
push 8
call dword [0x5ba01c]
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
je 0x50a056
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x50a138
mov edx, dword [esp + 0x78]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x50a0c7
sub eax, edi
je 0x50a0fe
cmp byte [edx], 0x3d
je 0x50a0fe
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0050aab0
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x50a26b
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x50a10b
pop edi
pop esi
pop ebp
mov eax, 0x3d
pop ebx
add esp, 0x50
ret
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], 2
call fcn.004e7710
add esp, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], edx
call fcn.004e7710
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x50a174
mov ecx, dword [esi + 4]
jmp 0x50a176
xor ecx, ecx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
neg eax
lea edx, [esp + 0x50]
push edx
sbb eax, eax
lea edx, [esp + 0x2c]
push edx
push ebx
lea edx, [esp + 0x68]
and eax, edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x8c]
push 0x10
neg eax
push ebx
sbb eax, eax
and eax, 2
push eax
mov eax, dword [esi]
push edx
push ecx
mov ecx, dword [0x5c27a0]
mov edx, dword [ecx + 0x18]
push eax
call edx
cmp eax, ebx
je 0x50a1e5
cmp eax, 0x90312
je 0x50a1e5
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x50a1d8
push eax
call dword [0x5ba020]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x50
ret
mov edx, dword [esi + 4]
lea edi, [esp + 0x20]
mov ecx, 8
mov eax, edx
sub edi, edx
mov ebp, dword [edi + eax]
cmp ebp, dword [eax]
jne 0x50a209
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x50a1f5
jmp 0x50a224
mov eax, dword [0x5c27a0]
mov ecx, dword [eax + 0x24]
push edx
call ecx
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x20]
mov dword [esi], edx
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x50a253
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
push ecx
call fcn.0050ad50
add esp, 0x14
mov esi, eax
jmp 0x50a257
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x50a269
push eax
call dword [0x5ba020]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret