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

Disassembly:
sub esp, 0xe8
xor eax, eax
push ebx
mov ebx, dword [esp + 0xf0]
mov ax, word [ebx + 0xa]
push ebp
xor ebp, ebp
mov bp, word [ebx + 8]
xor ecx, ecx
mov cx, word [ebx + 0x14]
lea ebp, [eax + ebp + 1]
xor eax, eax
cmp word [edi + 0x20], 1
mov ax, word [ebx + 0x16]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], eax
lea eax, [ecx + eax + 1]
mov dword [esp + 0x28], eax
jne 0x4d45b3
movsx eax, ax
movsx ecx, bp
imul ecx, eax
mov dword [esp + 0x2c], eax
movsx eax, word [edi + 0x22]
cmp eax, ecx
jl 0x4d45b3
test byte [edi + 0x3a], 1
je 0x4d3fbf
mov al, byte [0x6833dc]
test al, al
jne 0x4d3fb8
mov eax, dword [edi + 0x88]
test eax, eax
jne 0x4d3fbf
mov byte [esp + 0xb], 1
jmp 0x4d3fc4
mov byte [esp + 0xb], 0
fld dword [esp + 0xf8]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4d3fdc
fld dword [ebx]
jmp 0x4d3fdf
fld dword [ebx + 4]
fld dword [0x66c40c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x4d3ffa
mov dword [esp + 0x10], 0
jmp 0x4d4007
fld dword [esp + 0xf8]
fdiv st(1)
fstp dword [esp + 0x10]
fstp st(0)
push esi
fld dword [esp + 0x14]
call fcn.006343a4
fld dword [esp + 0x14]
fld qword [0x66c440]
mov esi, eax
call fcn.0062410a
fst dword [esp + 0x10]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4d4044
fld dword [esp + 0x10]
dec esi
fadd dword [0x66c410]
fstp dword [esp + 0x10]
xor eax, eax
mov ax, word [ebx + 0xa]
cmp si, ax
jl 0x4d405a
lea esi, [eax - 1]
mov dword [esp + 0x10], 0x3f800000
xor eax, eax
mov ax, word [ebx + 8]
movsx ecx, ax
movsx edx, si
neg ecx
cmp edx, ecx
jge 0x4d4078
mov esi, eax
neg esi
mov dword [esp + 0x10], 0
fld dword [esp + 0x100]
add esi, eax
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4d4093
fld dword [ebx + 0xc]
jmp 0x4d4096
fld dword [ebx + 0x10]
fld dword [0x66c40c]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x4d40b1
mov dword [esp + 0x14], 0
jmp 0x4d40be
fld dword [esp + 0x100]
fdiv st(1)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x14]
call fcn.006343a4
fld dword [esp + 0x14]
fld qword [0x66c440]
mov ebx, eax
call fcn.0062410a
fst dword [esp + 0x18]
fcomp dword [0x66c40c]
fnstsw ax
test ah, 5
jp 0x4d40fa
fld dword [esp + 0x18]
dec ebx
fadd dword [0x66c410]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x38]
cmp bx, ax
jl 0x4d410e
lea ebx, [eax - 1]
mov dword [esp + 0x18], 0x3f800000
mov eax, dword [esp + 0x44]
movsx ecx, ax
movsx edx, bx
neg ecx
cmp edx, ecx
jge 0x4d412a
mov ebx, eax
neg ebx
mov dword [esp + 0x18], 0
add ebx, eax
test bx, bx
jl 0x4d45b2
cmp bx, word [esp + 0x2c]
jge 0x4d45b2
test si, si
jl 0x4d45b2
cmp si, bp
jge 0x4d45b2
movsx eax, si
movsx ecx, bp
lea edx, [eax + 1]
cmp edx, ecx
jne 0x4d4161
mov edx, eax
mov ecx, dword [esp + 0x30]
movsx eax, bx
inc eax
cmp eax, ecx
jne 0x4d4170
movsx eax, bx
mov dword [esp + 0x28], eax
mov eax, ebx
imul eax, ebp
lea ecx, [eax + esi]
lea ebx, [eax + edx]
mov eax, dword [esp + 0x28]
imul eax, ebp
mov dword [esp + 0x30], ecx
add esi, eax
lea ebp, [eax + edx]
push ecx
mov ecx, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], ebp
call fcn.004d2b50
push ebx
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.004d2b50
push esi
mov ecx, edi
mov dword [esp + 0x4c], eax
call fcn.004d2b50
push ebp
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.004d2b50
xor esi, esi
xor ebx, ebx
add esp, 0x10
xor ebp, ebp
cmp word [edi + 0x2c], bx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
jle 0x4d45b2
mov ecx, dword [esp + 0x104]
movsx eax, bx
shl eax, 5
add eax, ecx
test bl, 0x1f
mov dword [esp + 0x48], eax
jne 0x4d4214
mov ax, bx
sar ax, 5
movsx eax, ax
mov ecx, dword [edi + eax*4 + 0x5c]
mov edx, dword [edi + eax*4 + 0x6c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], edx
test byte [esp + 0x50], 1
je 0x4d43a7
mov al, byte [esp + 0xf]
test al, al
lea eax, [esp + 0x84]
je 0x4d42c6
movsx ecx, word [esp + 0x30]
push eax
mov dword [esp + 0x20], ecx
push ebx
push esi
fild dword [esp + 0x28]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.004d4ea0
movsx eax, word [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0xd4]
push edx
push ebx
mov dword [esp + 0x24], eax
push esi
push ecx
fild dword [esp + 0x2c]
mov ecx, edi
fstp dword [esp]
call fcn.004d4ea0
movsx edx, word [esp + 0x54]
add esp, 0x10
lea ecx, [esp + 0x94]
push ecx
push ebx
mov dword [esp + 0x24], edx
push esi
push ecx
fild dword [esp + 0x2c]
mov ecx, edi
fstp dword [esp]
call fcn.004d4ea0
movsx ecx, word [esp + 0x48]
add esp, 0x10
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0x20], ecx
push ebx
push esi
fild dword [esp + 0x28]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.004d4ea0
add esp, 0x10
inc esi
mov dword [esp + 0x1c], esi
jmp 0x4d4323
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.004d4670
add esi, 8
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xd4]
mov ecx, esi
call fcn.004d4670
add esi, 8
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x94]
mov ecx, esi
call fcn.004d4670
add esi, 8
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xb4]
mov ecx, esi
call fcn.004d4670
add esi, 8
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x10]
push edx
lea esi, [esp + 0xc8]
lea ecx, [esp + 0xd8]
lea edx, [esp + 0x88]
call fcn.004cc000
mov ecx, esi
call fcn.004cbe60
mov eax, dword [esp + 0x14]
push eax
lea esi, [esp + 0xac]
lea ecx, [esp + 0xbc]
lea edx, [esp + 0x9c]
call fcn.004cc000
mov ecx, esi
call fcn.004cbe60
mov ecx, dword [esp + 0x20]
push ecx
lea esi, [esp + 0xf0]
lea ecx, [esp + 0xb0]
lea edx, [esp + 0xd0]
call fcn.004cc000
add esp, 0xc
mov ecx, esi
call fcn.004cbe60
mov eax, dword [esp + 0x48]
mov edx, eax
call fcn.004cbf30
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0x28]
shr ecx, 1
test al, 1
mov dword [esp + 0x50], ecx
je 0x4d459d
fld dword [0x66c410]
mov al, byte [esp + 0xf]
test al, al
fsub dword [esp + 0x10]
fstp dword [esp + 0x24]
fld dword [0x66c410]
fsub dword [esp + 0x18]
fstp dword [esp + 0x4c]
je 0x4d4473
movsx eax, word [esp + 0x30]
lea edx, [esp + 0x54]
push edx
push ebx
mov dword [esp + 0x28], eax
push ebp
push ecx
fild dword [esp + 0x30]
mov ecx, edi
fstp dword [esp]
call fcn.004d5030
movsx edx, word [esp + 0x3c]
add esp, 0x10
lea ecx, [esp + 0x6c]
push ecx
push ebx
mov dword [esp + 0x28], edx
push ebp
push ecx
fild dword [esp + 0x30]
mov ecx, edi
fstp dword [esp]
call fcn.004d5030
movsx ecx, word [esp + 0x54]
add esp, 0x10
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x24], ecx
push ebx
push ebp
fild dword [esp + 0x2c]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.004d5030
movsx eax, word [esp + 0x48]
add esp, 0x10
lea edx, [esp + 0x78]
push edx
push ebx
mov dword [esp + 0x28], eax
push ebp
push ecx
fild dword [esp + 0x30]
mov ecx, edi
fstp dword [esp]
call fcn.004d5030
add esp, 0x10
inc ebp
jmp 0x4d44fa
mov eax, dword [esp + 0x3c]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add eax, 0xc
mov dword [esp + 0x58], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], ecx
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
add eax, 0xc
mov dword [esp + 0x70], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], edx
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add eax, 0xc
mov dword [esp + 0x64], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
mov edx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [edx]
mov dword [esp + 0x78], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
add eax, 0xc
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x14], eax
fld dword [esp + 0x60]
mov eax, dword [esp + 0x48]
fmul dword [esp + 0x24]
fld dword [esp + 0x78]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [esp + 0x18]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
fld dword [esp + 0x6c]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [esp + 0x4c]
faddp st(1)
fadd dword [eax + 0x10]
fstp dword [eax + 0x10]
fld dword [esp + 0x64]
fmul dword [esp + 0x24]
fld dword [esp + 0x7c]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [esp + 0x18]
fld dword [esp + 0x58]
fmul dword [esp + 0x24]
fld dword [esp + 0x70]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [esp + 0x4c]
faddp st(1)
fadd dword [eax + 0x14]
fstp dword [eax + 0x14]
fld dword [esp + 0x5c]
fmul dword [esp + 0x24]
fld dword [esp + 0x74]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [esp + 0x4c]
fld dword [esp + 0x68]
fmul dword [esp + 0x24]
fld dword [esp + 0x80]
fmul dword [esp + 0x10]
faddp st(1)
fmul dword [esp + 0x18]
faddp st(1)
fadd dword [eax + 0x18]
fstp dword [eax + 0x18]
mov edx, dword [esp + 0x28]
shr edx, 1
inc ebx
cmp bx, word [edi + 0x2c]
mov dword [esp + 0x28], edx
jl 0x4d41e2
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret