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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx + 8]
mov edi, edx
mov dword [esp + 0x1c], ebx
test esi, esi
jne 0x50b744
cmp dword [ebx + 0x74], esi
jne 0x50b73d
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x50b73d
mov byte [ebx + 0x17], 1
call fcn.00491890
mov esi, eax
xor ebp, ebp
test edi, edi
je 0x50b95e
lea eax, [edi + 0x58]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x74]
mov ebx, dword [edi + 0x2c]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x78], ecx
jg 0x50b77d
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.00491ae0
add esp, 0xc
jmp 0x50b7b0
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x48]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x50b7be
mov ecx, dword [eax]
jmp 0x50b7c0
xor ecx, ecx
cmp ebp, ecx
jg 0x50b7ce
test eax, eax
je 0x50b7cc
mov ebp, dword [eax]
jmp 0x50b7ce
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
jne 0x50b94f
mov eax, dword [ebx + 0x20]
cmp eax, str.nth_value
je 0x50b7f0
cmp eax, str.first_value
jne 0x50b899
mov ecx, dword [esi + 0x74]
mov edx, dword [edi + 0x40]
cmp dword [esi + 0x78], ecx
jg 0x50b811
push 0
push edx
push 0
mov edx, 0x47
mov ecx, esi
call fcn.00491ae0
add esp, 0xc
jmp 0x50b844
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x50b866
push 0
push edx
push 0
mov edx, 0x47
mov ecx, esi
call fcn.00491ae0
add esp, 0xc
jmp 0x50b899
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test dword [ebx + 4], 0x1000
je 0x50b94f
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x50b94f
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x50b8cf
push 0
push 0
push edx
mov edx, 0x91
mov ecx, esi
call fcn.00491ae0
add esp, 0xc
jmp 0x50b8fe
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x40]
mov ecx, dword [esi + 0x74]
inc edx
cmp dword [esi + 0x78], ecx
jg 0x50b920
push 0
push edx
push 0
mov edx, 0x47
mov ecx, esi
call fcn.00491ae0
add esp, 0xc
jmp 0x50b94f
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x47
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x50b755
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x2c]
pop edi
pop esi
lea eax, [ecx + ebp]
mov dword [ebx + 0x2c], eax
lea eax, [ecx + 1]
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret