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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x78]
push ebp
xor ebp, ebp
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], ebp
cmp dword [ebx], ebp
jle 0x50c1e3
mov edx, dword [esp + 0x7c]
lea ecx, [ebx + 8]
mov dword [esp + 0x14], ecx
push esi
jmp 0x50bfe0
mov ecx, dword [ecx]
mov dword [esp + 0x20], ecx
cmp byte [ecx], 0xb1
jne 0x50bff2
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x50bff7
mov eax, 1
cmp eax, edx
jne 0x50c1b1
mov eax, dword [ecx + 0x14]
push 0
push 0x4c
push dword [edi]
mov dword [esp + 0x28], eax
call fcn.00504c90
mov esi, eax
add esp, 0xc
mov ebx, esi
test esi, esi
jne 0x50c020
lea esi, [esp + 0x2c]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x50c04d
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0xb4
push dword [edi]
call fcn.005076d0
push eax
push dword [edi]
call fcn.0050b9e0
add esp, 0x18
mov dword [esi + 0x1c], eax
mov byte [esi], 0x8a
mov dword [esi + 4], 0x200
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
inc dword [edi + 0x64]
mov eax, dword [edi + 0x64]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov word [esi + 2], ax
mov eax, dword [edi]
test eax, eax
je 0x50c09c
push 0
push 0x50
push eax
call fcn.00504c90
add esp, 0xc
mov edi, eax
jmp 0x50c0ec
cmp dword [0x7475d8], 0
je 0x50c0d9
mov eax, dword [0x74c528]
test eax, eax
je 0x50c0b8
push eax
call dword [0x747628]
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x50
call fcn.004e8c00
mov eax, dword [0x74c528]
add esp, 8
test eax, eax
je 0x50c0e8
push eax
call dword [0x747630]
jmp 0x50c0e5
push 0x50
call dword [0x7475f8]
mov dword [esp + 0x14], eax
add esp, 4
mov edi, dword [esp + 0x10]
test edi, edi
je 0x50c0fd
push 0x50
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x7c]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov ecx, dword [edi]
cmp byte [ecx + 0x57], 0
je 0x50c16a
xor eax, eax
lea edx, [esp + 0x2c]
cmp esi, edx
setne al
push eax
push esi
push ecx
call fcn.004c3280
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x20]
mov dword [eax + 0x14], 0
test ebx, ebx
je 0x50c185
test ebp, ebp
je 0x50c183
mov byte [ebx], 0x87
mov dword [ebx + 0x34], ebp
mov ebp, ebx
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x84]
inc eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
add ecx, 0x14
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [ebx]
jl 0x50bfe0
jmp 0x50c1d1
mov ecx, 0x5899fc
cmp eax, 1
jg 0x50c1c0
mov ecx, 0x56dd34
push edx
push ecx
push eax
push str.IN_...__element_has__d_term_s___expected__d
push edi
call fcn.00506fd0
add esp, 0x14
pop esi
test ebp, ebp
je 0x50c1e3
cmp dword [ebp + 0x34], 0
je 0x50c1e3
or dword [ebp + 4], 0x400
push ebx
push dword [edi]
call fcn.004cc370
add esp, 8
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x68
ret