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

Disassembly:
sub esp, 0x58
push esi
push edi
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 0x148]
test eax, eax
je 0x4dc65f
mov eax, dword [eax + 8]
cmp dword [eax], 0
je 0x4dc65f
test eax, eax
jne 0x4dc699
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4dcb92
mov eax, dword [eax]
pop edi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x64]
lea edx, [eax + 0x50]
mov esi, dword [eax + 0x50]
mov dword [ecx], esi
mov esi, dword [edx + 4]
mov dword [ecx + 4], esi
pop esi
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x78]
mov dword [ecx], eax
add esp, 0x58
ret
push ebx
push ebp
push 0
push 0x3e8
lea edx, [esp + 0x58]
push 0x10
push edx
call fcn.004b0b00
add esp, 0x10
mov esi, edi
test edi, edi
je 0x4dc74b
mov eax, dword [esi + 0x6c]
mov ebx, dword [esp + 0x50]
mov ecx, dword [eax]
mov eax, dword [esp + 0x54]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x58]
mov eax, dword [eax + edx*4]
imul eax, dword [esp + 0x60]
add eax, ebx
mov ebx, dword [esp + 0x64]
mov dword [ebx + eax], edx
mov edx, dword [esp + 0x58]
inc edx
mov ebx, eax
mov dword [esp + 0x58], edx
lea edx, [ecx + 0x50]
mov ebp, dword [ecx + 0x50]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ebx + 8], edx
mov ecx, dword [ecx + 0x5c]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x4dc720
lea edx, [esp + 0x50]
push eax
push edx
call fcn.004dcba0
add esp, 8
cmp esi, edi
jne 0x4dc738
mov esi, dword [esi + 0x148]
test esi, esi
je 0x4dc74b
mov esi, dword [esi + 8]
cmp dword [esi], 0
je 0x4dc74b
jmp 0x4dc743
mov esi, dword [esi]
test esi, esi
je 0x4dc74b
cmp dword [esi], 0
je 0x4dc74b
test esi, esi
jne 0x4dc6bb
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
cmp esi, 1
jle 0x4dcb1f
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x70]
test esi, esi
mov dword [esp + 0x6c], 0x7f7fffff
mov dword [esp + 0x14], 0
jle 0x4dc89f
mov dword [esp + 0x18], edi
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x14], eax
je 0x4dc7ef
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
mov ecx, eax
imul ecx, dword [edx]
mov edx, dword [esp + 0x50]
add ecx, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
imul edx, eax
add edx, dword [esp + 0x50]
fld dword [edx + 8]
fsub dword [ecx + 8]
fld dword [edx + 4]
fsub dword [ecx + 4]
fld dword [edx]
fsub dword [ecx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x6c]
fnstsw ax
test ah, 1
je 0x4dc7ed
fstp dword [esp + 0x6c]
mov ebx, ecx
mov ebp, edx
jmp 0x4dc7ef
fstp st(0)
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
jl 0x4dc78a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
add edx, 4
cmp eax, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jl 0x4dc780
fld dword [esp + 0x6c]
fcomp dword [0x5333ec]
fnstsw ax
test ah, 0x40
je 0x4dc89f
fld dword [ebx + 0xc]
fld dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 1
je 0x4dc848
fld dword [ebx + 0xc]
jmp 0x4dc84b
fld dword [ebp + 0xc]
fstp dword [ebx + 0xc]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
dec esi
mov ecx, dword [edx + ebp]
mov dword [esp + 0x58], esi
cmp ecx, esi
je 0x4dcb12
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov esi, dword [eax + esi*4]
imul esi, dword [esp + 0x60]
add esi, edi
mov edi, dword [eax + ecx*4]
mov dword [esp + 0x1c], edi
mov edx, dword [esi + edx]
mov edi, dword [eax + edx*4]
mov dword [eax + ecx*4], edi
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov dword [eax + edx*4], edi
mov edx, dword [esp + 0x64]
mov dword [esi + edx], ecx
jmp 0x4dcb0e
fld dword [esp + 0x6c]
fadd dword [ebp + 0xc]
fcomp dword [ebx + 0xc]
fnstsw ax
test ah, 1
je 0x4dc8fd
mov eax, dword [esp + 0x64]
dec esi
mov eax, dword [eax + ebp]
mov dword [esp + 0x58], esi
cmp eax, esi
je 0x4dcb16
mov esi, dword [edi + esi*4]
mov ecx, dword [esp + 0x50]
imul esi, dword [esp + 0x60]
mov edx, dword [edi + eax*4]
add esi, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x1c], edx
mov ecx, dword [esi + ecx]
mov edx, dword [edi + ecx*4]
mov dword [edi + eax*4], edx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov dword [edx + ecx*4], edi
mov ecx, dword [esp + 0x64]
mov dword [esi + ecx], eax
jmp 0x4dcb0e
fld dword [esp + 0x6c]
fadd dword [ebx + 0xc]
fcomp dword [ebp + 0xc]
fnstsw ax
test ah, 1
je 0x4dc959
mov edx, dword [esp + 0x64]
dec esi
mov eax, dword [ebx + edx]
mov dword [esp + 0x58], esi
cmp eax, esi
je 0x4dcb16
mov esi, dword [edi + esi*4]
mov ecx, dword [esp + 0x50]
imul esi, dword [esp + 0x60]
add esi, ecx
mov ecx, edx
mov edx, dword [edi + eax*4]
mov ecx, dword [esi + ecx]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + ecx*4]
mov dword [edi + eax*4], edx
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov dword [edx + ecx*4], edi
mov ecx, dword [esp + 0x64]
mov dword [esi + ecx], eax
jmp 0x4dcb0e
fld dword [ebp]
fsub dword [ebx]
fstp dword [esp + 0x38]
fld dword [ebp + 4]
fsub dword [ebx + 4]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x3c]
fld dword [ebp + 8]
fsub dword [ebx + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ecx
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], edx
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [ebx + 0xc]
fdiv st(1)
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fmul dword [esp + 0x28]
fld dword [esp + 0x20]
fchs
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fchs
fstp dword [esp + 0x24]
fchs
fld dword [esp + 0x20]
fadd dword [ebx]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [ebx + 4]
fstp dword [esp + 0x24]
fadd dword [ebx + 8]
fstp dword [esp + 0x28]
fdivr dword [ebp + 0xc]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x30]
fmul dword [esp + 0x34]
fld dword [esp + 0x2c]
fadd dword [ebp]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fadd dword [ebp + 4]
mov edx, ebx
fstp dword [esp + 0x30]
fadd dword [ebp + 8]
fld dword [esp + 0x2c]
fsub dword [esp + 0x20]
fmul dword [0x533504]
fadd dword [esp + 0x20]
fstp dword [esp + 0x44]
fld dword [esp + 0x30]
fsub dword [esp + 0x24]
mov eax, dword [esp + 0x44]
mov dword [edx], eax
fmul dword [0x533504]
fadd dword [esp + 0x24]
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
fld st(0)
fsub dword [esp + 0x28]
mov dword [edx + 4], ecx
fmul dword [0x533504]
fadd dword [esp + 0x28]
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
fsub dword [esp + 0x4c]
mov dword [edx + 8], eax
fld dword [esp + 0x30]
fsub dword [esp + 0x48]
fld dword [esp + 0x2c]
fsub dword [esp + 0x44]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fstp dword [ebx + 0xc]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x58]
dec esi
mov eax, dword [edx + ebp]
mov dword [esp + 0x58], esi
cmp eax, esi
je 0x4dcb12
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov esi, dword [ecx + esi*4]
imul esi, dword [esp + 0x60]
add esi, edi
mov edi, dword [ecx + eax*4]
mov dword [esp + 0x1c], edi
mov edx, dword [esi + edx]
mov edi, dword [ecx + edx*4]
mov dword [ecx + eax*4], edi
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x1c]
mov dword [ecx + edx*4], edi
mov edx, dword [esp + 0x64]
mov dword [esi + edx], eax
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
cmp esi, 1
jg 0x4dc764
mov eax, dword [edi]
mov edx, dword [esp + 0x60]
imul eax, edx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x70]
add eax, ecx
dec esi
mov ecx, eax
mov ebp, dword [ecx]
mov dword [ebx], ebp
mov ebp, dword [ecx + 4]
mov dword [ebx + 4], ebp
mov ecx, dword [ecx + 8]
mov dword [ebx + 8], ecx
mov ebx, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + ecx]
mov dword [esp + 0x58], esi
cmp eax, esi
je 0x4dcb83
mov esi, dword [edi + esi*4]
imul esi, edx
mov edx, dword [esp + 0x50]
add esi, edx
mov edx, dword [edi + eax*4]
mov ecx, dword [esi + ecx]
mov ebx, dword [edi + ecx*4]
mov dword [edi + eax*4], ebx
mov edi, dword [esp + 0x54]
mov dword [edi + ecx*4], edx
mov edx, dword [esp + 0x64]
mov dword [esi + edx], eax
lea eax, [esp + 0x50]
push eax
call fcn.004b0b70
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x58
ret