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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x50eed8
sub esp, 0x88
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea eax, [0x51e200]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x84], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x80]
mov dword [esp + 4], ecx
call fcn.004a9e20
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x7c], esi
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
test edx, edx
je 0x50ebf5
test ebx, ebx
je 0x50ebef
lea ecx, [0x65efc8]
cmp ecx, eax
jne 0x50ebe9
mov dword [esp + 0x78], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x4c], ebx
nop
lea eax, [0x5eada0]
mov dword [esp], eax
call fcn.0040b8d0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x4c]
mov dword [edi + 4], eax
mov eax, dword [0x7a0970]
test eax, eax
jne 0x50ebde
mov ecx, dword [esp + 0x78]
mov dword [edi], ecx
mov ecx, dword [esp + 0x74]
mov dword [edi + 8], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x50ebc8
mov eax, dword [esp + 0x6c]
mov dword [edi + 0xc], eax
lea eax, [0x65eb90]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
add esp, 0x88
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x6c]
call fcn.0045de10
mov edi, edx
jmp 0x50eba2
mov eax, dword [esp + 0x78]
call fcn.0045de10
jmp 0x50eb8a
mov eax, edx
mov edi, ebp
jmp 0x50eba8
mov eax, edx
mov edi, ebp
jmp 0x50eba8
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x8c]
mov edx, dword [eax + 0x134]
mov dword [esp + 0x48], edx
mov ebx, dword [eax + 0x138]
mov dword [esp + 0x34], ebx
mov ebp, dword [eax + 0x140]
mov dword [esp + 0x5c], ebp
mov esi, dword [eax + 0x144]
mov dword [esp + 0x40], esi
cmp ebx, 2
je 0x50eec9
cmp ebx, 3
setne al
mov byte [esp + 0x2f], al
lea ecx, [0x5fb880]
mov dword [esp], ecx
call fcn.0040b8d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2f]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x48]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x50eeb1
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x140], ecx
mov dword [esp + 0x58], eax
mov dword [esp], eax
call fcn.0050e020
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x50ee72
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jbe 0x50eed0
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.0048e6c0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0048bcf0
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 4]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x60], edx
mov dword [esp], eax
call fcn.0048bcf0
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x58]
mov dword [esp], edx
call fcn.00519420
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x78]
mov dword [esp], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x58]
mov dword [esp], edx
call fcn.00519420
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x58]
mov dword [ebx + 0x148], edx
mov edx, dword [0x7a0970]
test edx, edx
jne 0x50ee5a
mov edx, dword [esp + 0x68]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x7a0970]
test ecx, ecx
jne 0x50ee4d
mov dword [ebx + 0x154], eax
lea eax, [0x607da0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5d7ec0]
mov dword [esp + 8], eax
lea eax, [0x626fc4]
mov dword [esp + 0xc], eax
call fcn.00415170
mov eax, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x88
ret
lea edi, [ebx + 0x154]
call fcn.0045de10
jmp 0x50edff
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x68]
call fcn.0045de10
mov eax, edx
jmp 0x50ede9
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
call fcn.0050dc10
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
add esp, 0x88
ret
lea edi, [eax + 0x140]
mov ecx, eax
mov eax, dword [esp + 0x5c]
call fcn.0045de10
mov eax, ecx
jmp 0x50eca5
xor eax, eax
jmp 0x50ec3b
xor eax, eax
call fcn.0045de90
nop
call fcn.0045c8b0
jmp fcn.0050eaa0