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

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
mov eax, dword [esp + 0x68]
xor ecx, ecx
push edi
mov edx, dword [esi + 0x84]
mov ebx, dword [esi + 0x80]
cmp ebp, edx
setl cl
shl ecx, 1
xor edx, edx
cmp eax, ebx
mov ebx, dword [esi + 0x8c]
setl dl
or ecx, edx
xor edx, edx
shl ecx, 1
cmp ebp, ebx
mov ebx, dword [esi + 0x88]
setg dl
or ecx, edx
xor edx, edx
shl ecx, 1
cmp eax, ebx
setg dl
or ecx, edx
mov edi, ecx
mov ecx, dword [esi + 0x78]
cmp ecx, edi
mov dword [esp + 0x44], edi
jne 0x4d32ad
test edi, edi
jne 0x4d3623
mov ecx, dword [esi + 0x7c]
push ebp
test ecx, ecx
push eax
mov ecx, esi
jne 0x4d329c
call fcn.00503950
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x7c], 1
jmp 0x4d361f
call fcn.00503a30
mov dword [esi + 0x7c], 1
jmp 0x4d361f
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x74]
sub eax, ecx
sub ebp, edx
mov dword [esp + 0x40], eax
lea ebx, [esp + 0x58]
fild dword [esp + 0x40]
mov dword [esp + 0x40], ebp
xor ebp, ebp
lea edi, [esp + 0x48]
mov dword [esp + 0x34], edx
fstp dword [esp + 0x14]
fild dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x40
je 0x4d335b
cmp ecx, dword [esi + 0x80]
jle 0x4d3351
mov dword [esp + 0x14], 0x8da24260
fild dword [esi + 0x88]
fstp dword [esp + 0x24]
fild dword [esi + 0x80]
fstp dword [esp + 0x40]
fild dword [esp + 0x3c]
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fsub dword [esp + 0x38]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x10]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x40
je 0x4d3388
cmp edx, dword [esi + 0x84]
jle 0x4d337e
mov dword [esp + 0x10], 0x8da24260
jmp 0x4d33ab
mov dword [esp + 0x14], 0xda24260
jmp 0x4d336c
fld dword [esp + 0x14]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x41
jne 0x4d3302
fild dword [esi + 0x80]
fstp dword [esp + 0x24]
fild dword [esi + 0x88]
jmp 0x4d3312
mov dword [esp + 0x10], 0xda24260
jmp 0x4d3399
fld dword [esp + 0x10]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x41
jne 0x4d33ab
fild dword [esi + 0x84]
fstp dword [esp + 0x28]
fild dword [esi + 0x8c]
jmp 0x4d33bb
fild dword [esi + 0x8c]
fstp dword [esp + 0x28]
fild dword [esi + 0x84]
fstp dword [esp + 0x3c]
fild dword [esp + 0x34]
fstp dword [esp + 0x30]
fld dword [esp + 0x28]
fsub dword [esp + 0x30]
fdiv dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4d33f4
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x4d3400
mov edx, dword [esp + 0x18]
fld dword [esp + 0x1c]
mov dword [esp + 0x20], edx
fcom dword [0x6865bc]
fnstsw ax
test ah, 0x41
je 0x4d35db
fld dword [0x670244]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x4d3449
fld dword [esp + 0x24]
call fcn.0046664c
fld dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea edi, [esp + 0x4c]
call fcn.0046664c
mov dword [esp + 0x58], eax
lea ebx, [esp + 0x5c]
mov ebp, 1
fld dword [esp + 0x20]
fcomp dword [0x6865bc]
fnstsw ax
test ah, 0x41
je 0x4d35dd
fld dword [esp + 0x40]
fsub dword [esp + 0x38]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x2c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x30]
fdiv dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4d3493
fld dword [esp + 0x2c]
jmp 0x4d3497
fld dword [esp + 0x34]
fld dword [esp + 0x20]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x41
je 0x4d34b9
fcom dword [0x670244]
fnstsw ax
test ah, 0x41
jne 0x4d35db
fld dword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4d3598
fld dword [esp + 0x20]
fcomp dword [0x670244]
fnstsw ax
test ah, 0x41
jne 0x4d352b
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4d3506
fld dword [esp + 0x24]
call fcn.0046664c
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
mov dword [edi], eax
add edi, 4
fadd dword [esp + 0x30]
jmp 0x4d3520
fld dword [esp + 0x1c]
fmul dword [esp + 0x14]
fadd dword [esp + 0x38]
call fcn.0046664c
fld dword [esp + 0x28]
mov dword [edi], eax
add edi, 4
call fcn.0046664c
mov dword [ebx], eax
add ebx, 4
inc ebp
fcomp dword [0x6865bc]
fnstsw ax
test ah, 1
je 0x4d3589
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4d3568
fld dword [esp + 0x40]
call fcn.0046664c
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
mov dword [edi], eax
fadd dword [esp + 0x30]
call fcn.0046664c
mov dword [ebx], eax
inc ebp
jmp 0x4d35dd
fld dword [esp + 0x34]
fmul dword [esp + 0x14]
fadd dword [esp + 0x38]
call fcn.0046664c
fld dword [esp + 0x3c]
mov dword [edi], eax
call fcn.0046664c
mov dword [ebx], eax
inc ebp
jmp 0x4d35dd
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [edi], eax
mov dword [ebx], ecx
inc ebp
jmp 0x4d35dd
fstp st(0)
fld dword [esp + 0x18]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4d35c2
fld dword [esp + 0x24]
call fcn.0046664c
fld dword [esp + 0x3c]
mov dword [edi], eax
call fcn.0046664c
mov dword [ebx], eax
inc ebp
jmp 0x4d35dd
fld dword [esp + 0x40]
call fcn.0046664c
fld dword [esp + 0x28]
mov dword [edi], eax
call fcn.0046664c
mov dword [ebx], eax
inc ebp
jmp 0x4d35dd
fstp st(0)
test ebp, ebp
lea edi, [esp + 0x48]
lea ebx, [esp + 0x58]
je 0x4d3617
mov eax, dword [esi + 0x7c]
mov ecx, dword [edi]
test eax, eax
mov eax, dword [ebx]
jne 0x4d3605
push eax
push ecx
mov ecx, esi
add edi, 4
add ebx, 4
call fcn.004d3160
jmp 0x4d3614
push eax
push ecx
mov ecx, esi
add edi, 4
add ebx, 4
call fcn.004d31b0
dec ebp
jne 0x4d35e9
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x78], edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8