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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x50dba2
cmp dword [ebp + 0xc], 0
je 0x50dba2
mov ebx, dword [edi + 0x18]
cmp ebx, 0x80
mov esi, 1
mov dword [esp + 0x24], 0x7c
mov dword [esp + 0x20], ebx
jg 0x50d907
jge 0x50d8d2
cmp dword [edi + 0x1c], 0x80
jge 0x50d8d2
push 0x10
push 0x400
call fcn.005475c0
mov edx, dword [edi + 0x18]
mov ecx, eax
add esp, 8
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test edx, edx
jle 0x50d8a3
nop
test ecx, ecx
je 0x50d89b
mov edx, dword [edi + 0x20]
mov ebx, dword [edx + eax*8]
mov dword [ecx], ebx
mov edx, dword [edx + eax*8 + 4]
mov ebx, dword [esp + 0x20]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x1c]
inc eax
add ecx, 8
cmp eax, edx
jl 0x50d880
mov eax, dword [edi + 0x20]
test eax, eax
je 0x50d8c0
cmp byte [edi + 0x24], 0
je 0x50d8b9
push eax
call fcn.00547600
add esp, 4
mov dword [edi + 0x20], 0
mov eax, dword [esp + 0x18]
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], 0x80
cmp ebx, 0x80
jge 0x50d907
mov edx, dword [esp + 0x34]
lea ecx, [ebx*8]
mov ebx, dword [esp + 0x30]
lea esp, [esp]
mov eax, dword [edi + 0x20]
add eax, ecx
je 0x50d8fc
mov dword [eax], ebx
mov dword [eax + 4], edx
add ecx, 8
cmp ecx, 0x400
jl 0x50d8f0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x18], 0x80
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x20]
mov ebx, dword [eax + esi*8 - 8]
mov eax, dword [eax + esi*8 - 4]
dec esi
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jle 0x50da62
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x18]
add ecx, ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
jl 0x50da58
jle 0x50da21
cmp dword [edi + 0x1c], ecx
jge 0x50da21
test ecx, ecx
je 0x50d981
lea eax, [ecx*8]
push 0x10
push eax
call fcn.005475c0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
add esp, 8
jmp 0x50d989
mov dword [esp + 0x20], 0
mov edx, dword [edi + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
test edx, edx
jle 0x50d9ea
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], 0
je 0x50d9d6
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + edx*8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov edx, dword [edx + ecx*8 + 4]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x18]
add dword [esp + 0x14], 8
inc edx
cmp edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
jl 0x50d9a8
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x20]
test edx, edx
je 0x50da0f
cmp byte [edi + 0x24], 0
je 0x50da08
push edx
call fcn.00547600
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [edi + 0x20], 0
mov edx, dword [esp + 0x20]
mov dword [edi + 0x20], edx
mov edx, dword [esp + 0x2c]
mov byte [edi + 0x24], 1
mov dword [edi + 0x1c], ecx
cmp edx, ecx
mov dword [esp + 0x20], edx
jge 0x50da58
lea esp, [esp]
mov ecx, dword [edi + 0x20]
lea ecx, [ecx + edx*8]
test ecx, ecx
je 0x50da4b
mov edx, dword [esp + 0x30]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc edx
cmp edx, ecx
mov dword [esp + 0x20], edx
jl 0x50da30
mov dword [edi + 0x18], ecx
sub ecx, 4
mov dword [esp + 0x24], ecx
cmp ebx, eax
jne 0x50daa3
cmp dword [ebx + 0x28], 0
je 0x50db9a
mov eax, dword [ebx + 0x24]
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8], eax
mov dword [ecx + esi*8 + 4], eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8 + 8], eax
mov dword [ecx + esi*8 + 0xc], eax
mov ecx, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x28]
mov eax, dword [edi + 0x20]
inc esi
inc esi
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], ebx
inc esi
jmp 0x50db9a
movaps xmm1, xmmword [ebx]
movaps xmm0, xmmword [eax + 0x10]
movaps xmm2, xmmword [eax]
cmpltps xmm0, xmm1
movaps xmm1, xmmword [ebx + 0x10]
cmpltps xmm1, xmm2
orps xmm0, xmm1
movaps xmmword [esp + 0x50], xmm0
mov ecx, dword [esp + 0x50]
or ecx, dword [esp + 0x54]
or ecx, dword [esp + 0x58]
jne 0x50db9a
cmp dword [ebx + 0x28], ecx
je 0x50db57
mov edx, dword [ebx + 0x24]
cmp dword [eax + 0x28], ecx
je 0x50db3c
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + esi*8 + 4], edx
mov ecx, dword [eax + 0x24]
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8 + 8], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + esi*8 + 0xc], edx
mov ecx, dword [eax + 0x28]
mov edx, dword [ebx + 0x24]
inc esi
inc esi
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx + esi*8 + 4], edx
mov ebx, dword [ebx + 0x28]
mov eax, dword [eax + 0x28]
mov ecx, dword [edi + 0x20]
inc esi
mov dword [ecx + esi*8], ebx
mov dword [ecx + esi*8 + 4], eax
inc esi
jmp 0x50db9a
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8], edx
mov dword [ecx + esi*8 + 4], eax
mov ebx, dword [ebx + 0x28]
mov ecx, dword [edi + 0x20]
inc esi
mov dword [ecx + esi*8], ebx
mov dword [ecx + esi*8 + 4], eax
inc esi
jmp 0x50db9a
cmp dword [eax + 0x28], 0
je 0x50db7b
mov edx, dword [eax + 0x24]
mov ecx, dword [edi + 0x20]
mov dword [ecx + esi*8], ebx
mov dword [ecx + esi*8 + 4], edx
mov eax, dword [eax + 0x28]
mov ecx, dword [edi + 0x20]
inc esi
mov dword [ecx + esi*8], ebx
mov dword [ecx + esi*8 + 4], eax
inc esi
jmp 0x50db9a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax + 0x24]
mov ecx, dword [edx + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
inc dword [eax + 0x78]
test esi, esi
jne 0x50d91c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc