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

Disassembly:
mov ecx, dword [0x6c4e70]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50bd67
add esp, 0xffffff80
mov edx, dword [esp + 0x84]
inc dword [edx + 0x28]
mov ebx, dword [edx + 0x30]
test ebx, ebx
jle 0x50b80b
inc dword [edx + 0x2c]
mov ebx, dword [edx + 0x2c]
cmp ebx, 0x64
jle 0x50b886
mov ebp, dword [edx + 0x28]
cmp ebp, 0x3e8
jle 0x50b886
cmp ebp, 0x61a80
jg 0x50b830
movsd xmm0, qword [0x5c0290]
jmp 0x50b870
cmp ebp, 0x3d0900
jl 0x50b842
movsd xmm0, qword [0x5c0280]
jmp 0x50b870
lea esi, [ebp - 0x61a80]
cvtsi2sd xmm0, esi
movsd xmm1, qword [0x5c0298]
divsd xmm0, xmm1
movsd xmm1, qword [0x5c0288]
mulsd xmm1, xmm0
movsd xmm0, qword [0x5c0290]
subsd xmm0, xmm1
cvtsi2sd xmm1, ebx
cvtsi2sd xmm2, ebp
divsd xmm1, xmm2
ucomisd xmm1, xmm0
ja 0x50bcbd
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x50b8a8
test ebx, 0x200
jne 0x50b8a8
lea eax, [0x5c13b8]
mov ecx, dword [esp + 0x8c]
jmp 0x50b8dc
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0048a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x94]
cmp dword [0x69ff40], eax
jne 0x50b994
mov edx, dword [0x69ff44]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00404090
movzx eax, byte [esp + 0xc]
test al, al
je 0x50b986
lea eax, [0x576c00]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x50b93f
movzx ecx, byte [eax + 0xf]
nop
mov edx, ecx
and ecx, 0x1f
test dl, 0x20
jne 0x50b939
or ecx, 0x80
mov edx, dword [esp + 0x6c]
jmp 0x50b945
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00487840
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
call fcn.00489770
mov byte [esp + 0x98], 1
sub esp, 0xffffff80
ret
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x88]
mov esi, dword [ebp]
cmp esi, 1
jne 0x50ba12
mov esi, dword [ebp + 0x28]
cmp esi, 1
jne 0x50ba04
mov edi, dword [0x6c4f80]
test edi, edi
je 0x50b9c1
call fcn.00460f00
mov dword [edi], ebp
mov eax, dword [edx]
mov dword [edi + 4], eax
mov dword [edx], ebp
mov edi, dword [ebp + 0x28]
test edi, edi
jbe 0x50bcb4
mov dword [esp + 0x24], esi
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.0050b7e0
mov eax, dword [esp + 0x24]
cmp eax, 1
sete al
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
cmp esi, 0x10
je 0x50bbba
mov dword [esp], edx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.0050b330
movzx eax, byte [esp + 0x20]
test al, al
jne 0x50bbaa
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cmp ecx, 2
ja 0x50bb47
test ecx, ecx
jne 0x50bb18
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x48]
test ecx, ecx
jne 0x50bbf0
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jne 0x50bbf0
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.0050bf50
movzx eax, byte [esp + 0x10]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
cmp ecx, 2
jne 0x50bbf0
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050de10
movzx eax, byte [esp + 0x14]
jmp 0x50bb9f
cmp ecx, 4
je 0x50bb7b
cmp ecx, 8
jne 0x50bbf0
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050c020
movzx eax, byte [esp + 0x14]
jmp 0x50bb9f
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.0050e3c0
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
movzx eax, byte [esp + 0x21]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
mov dword [esp], edx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x8c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.0050bd80
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x98], al
sub esp, 0xffffff80
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00409470
mov eax, dword [esp + 4]
lea ecx, [0x5611e0]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x28]
mov dword [esp], eax
lea eax, [0x586bd5]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x590b52]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x27
call fcn.0044cfa0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004adf70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x5673c0]
mov dword [esp], eax
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.004093b0
mov eax, dword [esp + 8]
lea ecx, [0x5673c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435490
xor eax, eax
mov ecx, eax
call fcn.00460f60
nop
lea eax, [esp + 0x48]
mov dword [esp], eax
lea eax, [0x586bd5]
mov dword [esp + 4], eax
mov dword [esp + 8], 6
lea eax, [0x58fff5]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x24
call fcn.0044cfa0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004adf70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea eax, [0x5673c0]
mov dword [esp], eax
lea ecx, [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.004093b0
mov eax, dword [esp + 8]
lea ecx, [0x5673c0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435490
nop
call fcn.0045faf0
jmp fcn.0050b7e0