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

Disassembly:
mov ecx, dword [0x6cfe90]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50d3bf
sub esp, 0x6c
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x10]
test ebx, ebx
je 0x50d007
mov ebp, dword [edx + 0xc]
jmp 0x50d00f
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebp
mov esi, dword [edx + 0x1c]
mov dword [esp + 0x2c], esi
mov eax, dword [edx + 0x18]
mov dword [esp + 0x40], eax
cmp ebx, 0x15
je 0x50d031
mov ecx, 1
jmp 0x50d069
mov dword [esp], ebp
lea eax, [0x5806ac]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x15
call fcn.004030e0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x40]
test cl, cl
je 0x50d0b3
cmp ebx, 0x15
je 0x50d079
mov ecx, 1
jmp 0x50d0b5
mov dword [esp], ebp
lea eax, [0x5806c1]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x15
call fcn.004030e0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x40]
jmp 0x50d0b5
xor ecx, ecx
test cl, cl
je 0x50d156
cmp esi, 0xa
jle 0x50d108
mov dword [esp], 0
lea ecx, [0x57baf4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 7
lea eax, [0x57be57]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 4
call fcn.0044f110
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x50d148
mov dword [esp], 0
lea ecx, [0x57baf4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
lea eax, [0x57ba36]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.0044f110
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], eax
cmp ebx, 0x12
jge 0x50d167
xor ecx, ecx
jmp 0x50d19c
mov dword [esp], ebp
lea eax, [0x57f437]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x40]
test cl, cl
je 0x50d1f2
cmp ebx, 0x12
jb 0x50d3b2
mov dword [esp], 0
lea eax, [0x57baf6]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
lea eax, [ebx - 0x12]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 0x12
add eax, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0044f070
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x50d21c
test ecx, 0x200
jne 0x50d21c
lea ecx, [0x5b6f68]
mov edi, dword [esp + 0x80]
jmp 0x50d24a
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0048bba0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], edi
xor eax, eax
lea edi, [esp + 0x4c]
call fcn.00464ca8
mov ecx, dword [edx + 4]
inc ecx
mov dword [esp], ecx
call fcn.0040a200
mov ecx, dword [esp + 4]
lea edx, [0x557720]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.0040a300
mov ecx, dword [esp + 8]
lea edx, [0x5574e0]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.0040a300
mov ecx, dword [esp + 8]
lea edx, [0x5574e0]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x50d2d2
mov ecx, dword [ecx + 4]
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [0x585f91]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 4
call fcn.004b5e90
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
inc edx
mov ebx, dword [eax + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ecx, edx
jae 0x50d389
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], esi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x5574e0]
mov dword [esp + 0x10], eax
call fcn.0044b670
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x18], eax
mov eax, dword [0x6cff38]
test eax, eax
je 0x50d37a
call fcn.00464ac0
mov dword [edi], ecx
mov eax, dword [ebx + 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x10], ecx
mov eax, ebx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov ebx, ecx
mov dword [eax + 0x14], edx
lea eax, [ebx + edx*8 - 4]
mov dword [eax], esi
mov eax, dword [0x6cff38]
lea ecx, [ebx + edx*8 - 8]
test eax, eax
je 0x50d3ac
call fcn.00464ac0
mov dword [edi], ebp
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov dword [ecx], ebp
add esp, 0x6c
ret
mov eax, 0x12
mov ecx, ebx
call fcn.00464b90
nop
call fcn.004636b0
jmp fcn.0050cfe0