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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50c6dc
sub esp, 0x64
mov ecx, dword [esp + 0x68]
xor eax, eax
jmp 0x50c2a0
inc eax
cmp ax, 0xffff
ja 0x50c2b9
test byte [ecx], al
movzx edx, ax
movzx edx, byte [edx + ecx + 0x20004]
test dl, dl
je 0x50c29f
jmp 0x50c2be
mov eax, 0xffffffff
mov edx, 0xffffffff
jmp 0x50c2c6
dec edx
test byte [ecx], al
movzx ebx, dx
movzx ebx, byte [ebx + ecx + 0x20004]
test bl, bl
je 0x50c2c5
mov word [esp + 0x1e], ax
inc edx
mov word [esp + 0x1c], dx
cmp ax, dx
jae 0x50c621
lea eax, [0x5285a0]
mov dword [esp], eax
call fcn.0040c3d0
mov eax, dword [esp + 4]
movzx ecx, word [esp + 0x1e]
mov word [eax], cx
mov edx, dword [esp + 0x6c]
mov ebx, dword [edx + 0x10]
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], 2
call ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
sar eax, 0x1f
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x18]
test ecx, ecx
jne 0x50c569
movzx ebx, word [esp + 0x1c]
movzx ecx, bx
cmp ecx, 0x10000
ja 0x50c6d1
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
movzx edx, word [esp + 0x1e]
movzx ebx, dx
sub ecx, ebx
lea ebp, [ebx - 0x10000]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebx, ebp
mov ebp, dword [esp + 0x68]
lea ebx, [ebp + ebx + 4]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
call eax
mov eax, dword [esp + 0x10]
mov ecx, eax
sar eax, 0x1f
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
add ebp, ecx
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x28]
adc ecx, eax
mov dword [esp + 0x28], ecx
test edx, edx
jne 0x50c4a6
mov eax, dword [esp + 0x68]
movzx edx, byte [eax]
test dl, dl
je 0x50c487
mov ecx, dword [0x68b9cc]
mov dword [esp], eax
lea eax, [0x5d4354]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0050c6f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x50c47f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
test eax, eax
je 0x50c422
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
lea eax, [0x54fc7d]
mov dword [esp], eax
mov dword [esp + 4], 0x23
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x64
ret
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
lea edi, [esp + 0x4c]
xor eax, eax
call fcn.00468aaa
movzx ecx, word [esp + 0x1e]
mov word [esp], cx
call fcn.00409a90
mov ecx, dword [esp + 4]
lea edx, [0x536d20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x1c]
mov word [esp], cx
call fcn.00409a90
mov ecx, dword [esp + 4]
lea edx, [0x536d20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x50c508
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x60], eax
lea eax, [0x54ef66]
mov dword [esp], eax
mov dword [esp + 4], 0x20
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x64
ret
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
movzx ecx, word [esp + 0x1e]
mov word [esp], cx
call fcn.00409a90
mov eax, dword [esp + 4]
lea ecx, [0x536d20]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x50c5c0
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
lea eax, [0x551653]
mov dword [esp], eax
mov dword [esp + 4], 0x29
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x64
ret
lea edi, [esp + 0x4c]
xor eax, eax
call fcn.00468aaa
movzx ecx, word [esp + 0x1e]
mov word [esp], cx
call fcn.00409a90
mov ecx, dword [esp + 4]
lea edx, [0x536d20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x1c]
mov word [esp], cx
call fcn.00409a90
mov ecx, dword [esp + 4]
lea edx, [0x536d20]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea ecx, [0x54f482]
mov dword [esp], ecx
mov dword [esp + 4], 0x21
lea ecx, [esp + 0x4c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004a1ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
add esp, 0x64
ret
mov edx, 0x10000
call fcn.004688f0
nop
call fcn.00467460
jmp fcn.0050c280