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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x50b74f
sub esp, 0x9c
lea edi, [esp + 0x84]
xor eax, eax
call fcn.0045e87a
lea ecx, [0x6a575c]
mov dword [esp], ecx
lea ecx, [0x7f0320]
mov dword [esp + 4], ecx
call fcn.00409020
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov ecx, dword [0x7eea60]
lea edx, [0x6a5784]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
mov ecx, dword [0x7eea70]
lea edx, [0x6a57ac]
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp], ecx
lea edx, [esp + 0x84]
mov dword [esp + 4], edx
mov dword [esp + 8], 3
mov dword [esp + 0xc], 3
call fcn.00509040
movzx ecx, byte [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test cl, cl
jne 0x50b5d5
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call fcn.004f17f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov byte [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xac]
xor ebp, ebp
lea esi, [esp + 0x44]
lea edi, [esp + 0x54]
lea ebp, [esp + 0x64]
mov dword [esp + 0x3c], ebp
xor ebp, ebp
jmp 0x50b641
mov eax, dword [edx + 0x24]
mov dword [esp], ebx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x14], ecx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x9c
ret
inc ebp
mov ebx, dword [esp + 0xac]
mov eax, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp ecx, ebp
jle 0x50b65e
mov dword [esp + 0x30], ebp
movzx eax, byte [ebx + ebp]
mov byte [esp + 0x34], al
xor eax, eax
mov dword [esp + 0x2c], eax
movzx eax, byte [esp + 0x34]
jmp 0x50b6c1
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
call fcn.00509470
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x9c
ret
mov ebp, dword [esp + 0x2c]
inc ebp
shl ebx, 1
mov dword [esp + 0x2c], ebp
mov esi, edx
mov edi, ecx
mov dword [esp + 0x3c], eax
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
cmp ebx, 8
jge 0x50b631
mov byte [esp + 0x2b], al
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
call fcn.0050ac80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx ebx, byte [esp + 0x2b]
test bl, 0x80
je 0x50b693
mov ebx, dword [esp + 0xa0]
mov dword [esp], ebx
mov ebp, dword [esp + 0xa4]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0xa8]
mov dword [esp + 8], esi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.005097d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
movzx ebx, byte [esp + 0x2b]
jmp 0x50b693
call fcn.0045d190
jmp fcn.0050b440