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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x4c]
cmp eax, dword [ecx + 8]
jbe 0x50b306
sub esp, 0xcc
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x50b28f
lea edi, [esp + 0xb8]
xor eax, eax
call fcn.004773db
mov ecx, dword [esp + 0xe4]
mov dword [esp], ecx
mov edx, dword [esp + 0xe8]
mov dword [esp + 4], edx
call fcn.004e7230
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0xb8]
lea esi, [esp + 8]
call fcn.004778be
lea edi, [esp + 0x60]
lea esi, [esp + 0xb8]
call fcn.004778be
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x50b188
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0xd8]
mov dword [esp], edx
lea ebx, [0x6c5ae0]
mov dword [esp + 4], ebx
lea ebx, [0x8c84a0]
mov dword [esp + 8], ebx
call ecx
lea eax, [0x6b40a0]
cmp dword [esp + 0xc], eax
jne 0x50ab05
mov eax, dword [esp + 0x10]
jmp 0x50ab07
xor eax, eax
mov dword [esp + 0x4c], eax
test eax, eax
je 0x50ab2e
mov edx, dword [eax]
test edx, edx
je 0x50ab2e
mov eax, dword [edx]
mov ecx, dword [esp + 0xe4]
mov dword [esp], ecx
mov ebx, dword [esp + 0xe8]
mov dword [esp + 4], ebx
call eax
lea eax, [0x6cb300]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
lea ecx, [0x518040]
mov dword [eax], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x50ab5b
mov ecx, dword [esp + 0xd0]
jmp 0x50ab69
call fcn.004772e0
mov ecx, dword [esp + 0xd0]
mov dword [edi], ecx
mov dword [esp + 0x90], eax
mov dword [eax + 4], ecx
mov edx, dword [esp + 0xd4]
mov ebx, dword [edx + 0x18]
mov ebp, dword [esp + 0xd8]
mov dword [esp], ebp
lea esi, [0x6c5b20]
mov dword [esp + 4], esi
lea esi, [0x8c84a0]
mov dword [esp + 8], esi
call ebx
lea eax, [0x6c37a0]
cmp dword [esp + 0xc], eax
jne 0x50abaf
mov eax, dword [esp + 0x10]
jmp 0x50abb1
xor eax, eax
test eax, eax
jne 0x50abbc
mov eax, dword [esp + 0x90]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xd4]
mov dword [esp], ecx
mov edx, dword [esp + 0xd8]
mov dword [esp + 4], edx
call fcn.0050a9b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004ef7f0
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x58], edx
mov dword [esp], 0
mov ebx, dword [esp + 0xdc]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0xe0]
mov dword [esp + 8], ebp
lea esi, [0x7335ec]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0xe4]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xe8]
mov dword [esp + 0x18], edi
call fcn.00455e90
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
lea edx, [0x8c8940]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.0048f770
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call fcn.0050a8e0
mov eax, dword [esp + 4]
mov dword [esp + 0x8c], eax
lea ecx, [0x6debe0]
mov dword [esp], ecx
call fcn.0040dea0
mov eax, dword [esp + 4]
lea ecx, [0x50b3b0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x50acd3
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xe4]
jmp 0x50acf9
call fcn.00477310
mov ecx, dword [esp + 0x58]
mov dword [edi], ecx
mov edx, dword [esp + 0x50]
mov dword [edi + 4], edx
mov ebx, dword [esp + 0xdc]
mov dword [edi + 8], ebx
mov ebp, dword [esp + 0xe4]
mov dword [edi + 0xc], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0xe0]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ebx
mov ecx, dword [esp + 0xe8]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], ebp
mov edx, dword [esp + 0x8c]
mov dword [esp], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.004f7d50
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0xd4]
mov edx, dword [ecx + 0x10]
mov ebx, dword [esp + 0xd8]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
lea edi, [esp + 0xa4]
xor eax, eax
call fcn.004773db
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0x88]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], ecx
lea ecx, [esp + 0x94]
mov dword [esp], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.0044f400
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x50afb8
lea edi, [esp + 0xb8]
lea esi, [esp + 0xa4]
call fcn.004778be
lea eax, [0x8c8940]
mov dword [esp], eax
call fcn.0048f8b0
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
test eax, eax
je 0x50aead
lea edx, [0x734980]
cmp eax, edx
jne 0x50ae53
mov edx, dword [esp + 0x4c]
test edx, edx
jmp 0x50aeb3
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0050def0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050e7b0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
test eax, eax
mov edx, eax
lea eax, [0x734980]
jmp 0x50aeb3
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x50af4a
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x50af4a
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], ecx
lea ebx, [0x6b73c0]
cmp dword [esp + 0xb8], ebx
jne 0x50aeec
mov ebx, dword [esp + 0xbc]
mov ebp, dword [ebx]
mov esi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
jmp 0x50aef2
xor esi, esi
xor ebx, ebx
xor ebp, ebp
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
call fcn.0050b550
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
movzx esi, byte [esp + 0xc8]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
xchg esi, eax
mov byte [esp + 0xc], al
xchg esi, eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xbc]
movzx ebp, byte [esp + 0xc8]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
xchg ebp, eax
mov byte [esp + 0x10], al
xchg ebp, eax
call fcn.0050b470
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], ebp
add esp, 0xcc
ret
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call fcn.0050a8e0
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.004f81f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x50b048
mov edx, dword [esp + 0x5c]
mov eax, dword [edx]
call eax
lea eax, [0x6d7fe0]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
lea ecx, [0x50b360]
mov dword [eax], ecx
lea ecx, [0x7204c4]
mov dword [eax + 4], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x50b027
mov ecx, dword [esp + 0x7c]
jmp 0x50b032
call fcn.004772e0
mov ecx, dword [esp + 0x7c]
mov dword [edi], ecx
mov dword [eax + 8], ecx
lea ecx, [0x7204c8]
mov dword [eax + 0xc], ecx
mov dword [esp], eax
call fcn.00447320
jmp 0x50b09f
lea eax, [0x6d7fe0]
mov dword [esp], eax
call fcn.0040dea0
mov eax, dword [esp + 4]
lea ecx, [0x50b310]
mov dword [eax], ecx
lea ecx, [0x7204c4]
mov dword [eax + 4], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x50b07f
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
jmp 0x50b091
call fcn.004772f0
mov ecx, dword [esp + 0x7c]
mov dword [edi], ecx
mov edx, dword [esp + 0x5c]
mov dword [edi + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [esp], eax
call fcn.00447320
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0xd8]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0050def0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050e7b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x50b14c
mov edx, dword [ecx + 4]
test edx, edx
je 0x50b14c
mov dword [esp + 0x78], eax
mov ecx, dword [edx]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [esp + 0xc], 0
lea ebx, [0x734980]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
call ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
lea ecx, [0x734980]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
add esp, 0xcc
ret
lea edi, [esp]
lea esi, [esp + 0xb8]
call fcn.004778be
call fcn.004e8e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00506a20
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x84], edx
lea edi, [esp]
lea esi, [esp + 0x60]
call fcn.004778be
call fcn.004e8780
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea edx, [0x6be580]
mov dword [esp], edx
call fcn.0040dea0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [0x8c88d8]
test ecx, ecx
jne 0x50b231
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
jmp 0x50b249
call fcn.004772f0
mov ecx, dword [esp + 0x84]
mov dword [edi], ecx
mov edx, dword [esp + 0x80]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 1
mov dword [esp + 0xf4], 1
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
add esp, 0xcc
ret
mov eax, dword [0x8a1488]
lea edx, [0x734950]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0050e7b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
lea ecx, [0x734980]
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
add esp, 0xcc
ret
call fcn.00475ee0
jmp fcn.0050aa40