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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x68]
mov dword [esp + 0x1c], ebx
test al, al
jne 0x50dd2a
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0x50dd2a
call fcn.0050d7a0
mov eax, dword [ebx + 0x70]
fstp qword [esp + 0x28]
cmp eax, 1
je 0x50dcc2
test eax, eax
je 0x50dcc2
mov eax, dword [ebx + 0xa4]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
je 0x50dcc2
jmp 0x50d986
mov esi, dword [esp + 0x10]
lea eax, [esi + 8]
sub esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
add eax, 0x20
fld qword [eax + 0x10]
fadd qword [eax]
fmul qword [0x5af430]
fstp qword [esp + 0x28]
fld qword [eax + 0x18]
fadd qword [eax + 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
fmul qword [0x5af430]
fstp qword [esp]
push eax
push ecx
mov ecx, ebx
call fcn.0050c940
fadd qword [esp + 0x20]
mov ecx, dword [ebx + 0xa4]
cmp esi, ecx
fstp qword [esp + 0x20]
je 0x50d9f1
mov edx, dword [esi + 8]
fld qword [edx + 0x20]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x50d9f1
mov esi, dword [esi]
cmp esi, ecx
mov dword [esp + 0x10], esi
jne 0x50d9d6
mov esi, dword [esi + 4]
mov al, byte [ebp + 8]
mov dword [esp + 0x14], esi
mov esi, dword [esi + 8]
add esi, 8
test al, al
je 0x50daf3
cmp dword [ebx + 0x70], 4
jne 0x50daf3
mov eax, dword [esi + 8]
lea edi, [eax - 1]
cmp eax, edi
jb 0x50da33
mov eax, dword [esi + 4]
test eax, eax
je 0x50da33
mov ecx, esi
call fcn.00431660
mov eax, dword [esi + 4]
lea eax, [eax + edi*2]
jmp 0x50da38
mov eax, 0x5b21c8
cmp word [eax], 0x20
jne 0x50da91
mov eax, dword [esi + 8]
lea edi, [eax - 1]
cmp eax, edi
jb 0x50da5e
mov eax, dword [esi + 4]
test eax, eax
je 0x50da5e
mov ecx, esi
call fcn.00431660
mov ecx, dword [esi + 4]
lea eax, [ecx + edi*2]
jmp 0x50da63
mov eax, 0x5b21c8
mov word [eax], 0
mov ecx, dword [esi + 8]
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x50da83
mov edx, dword [0x5b21c4]
mov ecx, esi
push edx
push eax
call fcn.0043f7e0
jmp 0x50da13
sub eax, ecx
push 0
push eax
mov ecx, esi
call fcn.00510fd0
jmp 0x50da13
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [ebx + 0x28]
mov edx, dword [ecx + 0x18]
push edx
push eax
call fcn.0050c000
add esp, 8
lea ecx, [esp + 0x38]
mov edi, eax
push esi
push ecx
mov ecx, ebx
call fcn.0050b9b0
mov edx, dword [ebx + 0x28]
push edi
push edx
call fcn.0050c000
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
call dword [eax + 4]
test al, al
je 0x50dae2
fild dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
fmul qword [ebx + 0xf0]
jmp 0x50daed
mov edx, dword [esp + 0x14]
fild dword [esp + 0x38]
mov eax, dword [edx + 8]
fadd qword [eax + 0x20]
fstp qword [eax + 0x30]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x40]
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebx + 0x44]
mov edi, dword [esp + 0x30]
push ecx
mov esi, eax
push edx
push esi
push edi
mov ecx, ebx
mov dword [esp + 0x44], eax
call fcn.0050c940
fstp qword [esp + 0x20]
fld qword [esp + 0x28]
fadd qword [ebx + 0x40]
sub esp, 8
mov ecx, ebx
fstp qword [esp]
push esi
push edi
call fcn.0050c940
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x50db4c
fstp st(0)
fld qword [esp + 0x20]
mov eax, dword [ebx + 0x70]
cmp eax, 3
jne 0x50db5a
fmul qword [0x5af430]
fstp qword [esp + 0x20]
cmp eax, 4
je 0x50dbaf
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp ecx, edx
je 0x50dcb0
mov eax, dword [ecx + 8]
fld qword [esp + 0x20]
fadd qword [eax + 0x20]
mov esi, dword [eax + 0x28]
add eax, 0x20
mov dword [eax + 8], esi
mov esi, dword [eax + 0xc]
fstp qword [eax]
fld qword [esp + 0x20]
fadd qword [eax + 0x10]
mov dword [eax + 0xc], esi
mov esi, dword [eax + 0x18]
mov dword [eax + 0x18], esi
mov esi, dword [eax + 0x1c]
mov dword [eax + 0x1c], esi
fstp qword [eax + 0x10]
mov ecx, dword [ecx]
cmp ecx, edx
jne 0x50db73
jmp 0x50dcb0
mov al, byte [ebp + 8]
test al, al
je 0x50dcac
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp edi, eax
mov dword [esp + 0x14], 0
je 0x50dcac
mov eax, dword [edi + 8]
add eax, 8
xor ebx, ebx
mov ecx, dword [eax + 4]
mov esi, ecx
test ecx, ecx
jne 0x50dbe7
xor edx, edx
jmp 0x50dbed
mov edx, dword [eax + 8]
lea edx, [ecx + edx*2]
cmp esi, edx
je 0x50dbfd
cmp word [esi], 0x20
jne 0x50dbf8
inc ebx
add esi, 2
jmp 0x50dbdf
mov ecx, dword [esp + 0x14]
mov edi, dword [edi]
mov eax, dword [esp + 0x10]
add ecx, ebx
cmp edi, eax
mov dword [esp + 0x14], ecx
jne 0x50dbd2
mov eax, ecx
test eax, eax
je 0x50dca8
fld qword [0x5b3130]
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
fdivr qword [esp + 0x20]
mov eax, dword [ecx + 8]
add eax, 0x20
fld st(1)
fadd qword [eax]
mov edx, dword [eax + 8]
mov dword [eax + 8], edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x18]
fstp qword [eax]
fld st(1)
fadd qword [eax + 0x10]
mov dword [eax + 0x18], edx
mov edx, dword [eax + 0x1c]
mov dword [eax + 0x1c], edx
fstp qword [eax + 0x10]
mov eax, dword [ecx + 8]
fst qword [eax + 0x78]
mov eax, dword [ecx + 8]
add eax, 8
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edx, dword [eax + 4]
mov edi, edx
test edx, edx
jne 0x50dc78
xor esi, esi
jmp 0x50dc7e
mov esi, dword [eax + 8]
lea esi, [edx + esi*2]
cmp edi, esi
je 0x50dc8e
cmp word [edi], 0x20
jne 0x50dc89
inc ebx
add edi, 2
jmp 0x50dc70
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp ecx, eax
fild dword [esp + 0x18]
fmul st(1)
faddp st(2)
jne 0x50dc2d
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x18], edx
cmp edx, eax
jne 0x50d982
lea ecx, [ebx + 0x94]
lea edx, [ebx + 0xa0]
push ecx
push edx
call fcn.0050baa0
fld qword [esp + 0x30]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x34]
fadd qword [ebx + 0x40]
mov ecx, dword [ebx + 0xc]
add esp, 8
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x28]
push 0x3ca00000
push 0
fst qword [esp + 0x40]
fstp qword [ebx + 0x40]
push edx
mov edx, dword [esp + 0x44]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [esp + 0x48]
push eax
push 0
push 0
push ecx
push edx
push 0x3cb00000
push 0
mov ecx, ebx
call fcn.0050ddc0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4