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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50b115
sub esp, 0x68
lea eax, [0x530f20]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 1
call fcn.00449820
mov eax, dword [esp + 0xc]
mov ecx, 1
xor edx, edx
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x50aeff
mov ebx, dword [ebx]
test ebx, ebx
je 0x50aefb
mov dword [esp + 0x70], ebx
mov ebx, 1
jmp 0x50af14
xor ebx, ebx
jmp 0x50af14
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x70], ebx
test ebx, ebx
je 0x50af12
mov ebx, 1
jmp 0x50af14
xor ebx, ebx
test bl, bl
je 0x50b105
mov ebx, dword [esp + 0x70]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x50aee2
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
lea edi, [esp + 0x38]
xor eax, eax
call fcn.00461e44
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 4]
mov dword [esp], ecx
call fcn.0050b120
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ebx
test ebp, ebp
je 0x50af7e
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
jmp 0x50aee2
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x50af9a
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
jmp 0x50aee2
mov dword [esp], ecx
call fcn.0050b120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
test ebx, ebx
je 0x50afda
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0050b120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
test ebx, ebx
je 0x50b021
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call fcn.0050b120
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
test ebx, ebx
je 0x50b068
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x2c]
inc ecx
mov edx, dword [esp + 0x28]
cmp edx, ecx
jb 0x50b07b
mov eax, dword [esp + 0x34]
jmp 0x50b0ad
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x530f20]
mov dword [esp + 0x10], eax
call fcn.004498e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
lea ebx, [ecx + ecx*2]
shl ebx, 4
lea edi, [ebx + eax - 0x30]
mov ebx, dword [0x92b5b0]
test ebx, ebx
jne 0x50b0d0
lea esi, [esp + 0x38]
call fcn.004622e8
jmp 0x50b0fa
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
lea eax, [0x530f20]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
call fcn.00410230
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, edx
mov edx, dword [esp + 0x24]
jmp 0x50aee2
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
add esp, 0x68
ret
call fcn.00460860
jmp fcn.0050aea0