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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50abca
sub esp, 0x30
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
test eax, eax
je 0x50a95f
test ecx, ecx
je 0x50a95f
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x9c]
xor ebx, ebx
jmp 0x50ab78
mov eax, dword [0x7ba970]
mov ecx, dword [esp + 0x9c]
cmp dword [0x7ba974], ecx
jne 0x50a9c0
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004025c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x50a9b9
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x50a9ad
movzx eax, byte [esp + 0x3c]
mov byte [esp], al
call fcn.0050b260
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x9c]
jmp 0x50aade
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x7ba9a8]
cmp dword [0x7ba9ac], ecx
jne 0x50aa2a
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004025c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x50aa23
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x50aa17
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
movzx edx, byte [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], dl
call fcn.0050ad20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
jmp 0x50aade
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x7ba998]
cmp dword [0x7ba99c], ecx
jne 0x50aa76
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004025c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x50aa6f
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x50aa66
lea eax, [0x6458e4]
mov ecx, dword [esp + 0x9c]
jmp 0x50aade
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x7ba940]
cmp dword [0x7ba944], ecx
jne 0x50aacd
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004025c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x50aac6
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x50aabd
movzx eax, byte [esp + 0x3c]
mov byte [esp], al
call fcn.0050b7e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x9c]
jmp 0x50aade
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x50aade
lea eax, [0x6458e0]
mov dword [esp + 0x28], eax
lea edx, [0x6082c0]
mov dword [esp], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.0040ee00
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x50ab73
mov edx, dword [esp + 0x90]
mov ebx, dword [edx + 4]
sub ebx, dword [edx + 0xc]
test ebx, ebx
jle 0x50ab63
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp], edx
mov byte [esp + 4], 0x20
call fcn.0049cf10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x90]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0049ca50
add esp, 0x30
ret
inc ebx
cmp ebx, ecx
jge 0x50a95f
lea ebp, [eax + ebx*8]
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
cmp edx, esi
jne 0x50ab77
mov dword [esp + 0x1c], ebx
mov dword [esp], ebp
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004025c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x50abc6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x1c]
jmp 0x50ab77
add esp, 0x30
ret
call fcn.0045d540
jmp fcn.0050a920