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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x20]
push edi
lea eax, [esp + 0x130]
push esi
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], 0xffff
call fcn.004ce5c0
mov eax, dword [ebp + 0xc]
mov ecx, esi
shl ecx, 7
and eax, 0xff
sub ecx, esi
add esp, 8
mov dword [esp + 0x54], eax
lea edx, [eax + ecx*2]
cmp word [ebx + edx*2 + 0x118], 0
je 0x4c8126
mov esi, dword [ebp + 0x14]
mov ecx, 6
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0xa8]
fistp qword [esp + 0x14]
fld qword [esp + 0xb0]
mov esi, dword [ebp + 0x18]
mov ecx, 6
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
fistp qword [esp + 0x14]
mov edx, dword [esp + 0x14]
fld qword [esp + 0xb8]
fistp qword [esp + 0x14]
mov esi, dword [esp + 0x14]
fld qword [esp + 0x90]
fistp qword [esp + 0x14]
mov edi, dword [esp + 0x14]
fld qword [esp + 0x98]
fistp qword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
fld qword [esp + 0xa0]
fistp qword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0xde0]
add ecx, eax
add edi, eax
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0xde4]
add edx, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 0xde8]
add esi, edx
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x44]
add esi, ecx
mov ecx, dword [esp + 0x48]
add ecx, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x54]
movsx ecx, byte [ecx + 0xa969e0]
cmp ecx, 0xffffffff
je 0x4c78a4
mov eax, 1
shl eax, cl
mov dword [esp + 0x4c], eax
mov esi, dword [ebp + 0x20]
push esi
push ebx
call fcn.004ce620
mov eax, dword [ebx + esi*4 + 0x28]
mov edx, dword [ebp + 0x20]
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0xc8]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + edx*4 + 0xd0]
mov edx, dword [esp + 0xc0]
cmp ecx, 0x1e
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], edx
jne 0x4c7968
mov ecx, dword [esp + 0xf0]
mov esi, eax
and ecx, 0xff
lea edi, [esp + 0xc0]
mov dword [esp + 0x3c], ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0xf0], 0
xor esi, esi
mov dword [esp + 0x20], 7
lea eax, [esp + 0xe8]
lea edi, [esp + 0xcc]
mov edx, dword [eax]
mov ecx, dword [edi]
mov dword [edi], edx
mov edx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, esi
sar edx, cl
mov ecx, dword [esp + 0x20]
add edi, 4
sub eax, 4
and dl, 1
shl dl, cl
mov cl, byte [esp + 0xf0]
or cl, dl
mov edx, dword [esp + 0x20]
inc esi
dec edx
cmp esi, 4
mov byte [esp + 0xf0], cl
mov dword [esp + 0x20], edx
jl 0x4c7928
jmp 0x4c796f
mov cl, byte [esp + 0xf0]
mov esi, dword [ebp + 0x20]
lea eax, [esp + 0xc0]
fild dword [ebx + 0xde0]
lea edx, [esi + esi*2]
lea esi, [esi + esi*2 + 9]
mov dword [esp + 0x130], eax
mov al, cl
fadd qword [ebx + edx*8 + 0x40]
lea edx, [ebx + edx*8]
mov dword [esp + 0x20], 1
mov byte [esp + 0x135], al
mov byte [esp + 0x136], 0
fistp qword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x138], edi
fild dword [ebx + 0xde4]
fadd qword [ebx + esi*8]
fistp qword [esp + 0x14]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x13c], esi
fild dword [ebx + 0xde8]
cmp dword [esp + 0x40], edi
fadd qword [edx + 0x50]
fistp qword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x140], edx
jg 0x4c79f7
and cl, 0x55
jmp 0x4c7a00
cmp dword [esp + 0x58], edi
jl 0x4c7a09
and cl, 0xaa
mov al, cl
mov byte [esp + 0x135], al
cmp dword [esp + 0x44], esi
jg 0x4c7a13
and al, 0x33
jmp 0x4c7a1b
cmp dword [esp + 0x5c], esi
jl 0x4c7a22
and al, 0xcc
mov byte [esp + 0x135], al
cmp dword [esp + 0x48], edx
jg 0x4c7a2c
and al, 0xf
jmp 0x4c7a34
cmp dword [esp + 0x60], edx
jl 0x4c7a3b
and al, 0xf0
mov byte [esp + 0x135], al
test al, 0xf
je 0x4c7a50
test al, 3
je 0x4c7a47
and al, 1
jmp 0x4c7a64
shr al, 2
and al, 1
add al, 2
jmp 0x4c7a64
test al, 0x30
je 0x4c7a5d
shr al, 4
and al, 1
add al, 4
jmp 0x4c7a64
shr al, 6
and al, 1
add al, 6
xor al, 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov byte [esp + 0x134], al
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
jmp 0x4c7a90
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
mov cl, byte [esi + 5]
mov edx, dword [esi]
test cl, cl
jne 0x4c7c11
mov cl, byte [esi + 6]
test cl, cl
mov cx, word [edx + 0x38]
je 0x4c7afe
and ecx, eax
test cx, cx
je 0x4c7be0
mov ebx, dword [edx + 0x2c]
test ebx, ebx
je 0x4c7be0
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov ax, word [ebx + 0x1c]
lea edx, [eax + eax*2]
shl edx, 4
test dword [edx + 0xaf5f0c], ecx
je 0x4c7af2
lea edx, [edi + edi*2]
shl edx, 7
add edx, eax
mov eax, dword [edx*4 + 0xa96ae0]
test eax, eax
je 0x4c7af2
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
call eax
add esp, 8
mov ebx, dword [ebx + 0x58]
test ebx, ebx
jne 0x4c7abe
jmp 0x4c7be0
and ecx, eax
test cx, cx
je 0x4c7be0
mov ebx, dword [edx + 0x2c]
test ebx, ebx
je 0x4c7be0
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x38], edx
fld dword [esp + 0x38]
fsubr qword [ebx + 0x20]
fcomp qword [esp + 0x90]
fnstsw ax
test ah, 0x41
je 0x4c7bd5
fld dword [esp + 0x38]
fadd qword [ebx + 0x20]
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 1
jne 0x4c7bd5
fld dword [esp + 0x38]
fsubr qword [ebx + 0x28]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
je 0x4c7bd5
fld dword [esp + 0x38]
fadd qword [ebx + 0x28]
fcomp qword [esp + 0xb0]
fnstsw ax
test ah, 1
jne 0x4c7bd5
fld dword [esp + 0x38]
fsubr qword [ebx + 0x30]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
je 0x4c7bd5
fld dword [esp + 0x38]
fadd qword [ebx + 0x30]
fcomp qword [esp + 0xb8]
fnstsw ax
test ah, 1
jne 0x4c7bd5
xor eax, eax
mov edx, dword [ebp + 0x1c]
mov ax, word [ebx + 0x1c]
lea ecx, [eax + eax*2]
shl ecx, 4
test dword [ecx + 0xaf5f0c], edx
je 0x4c7bd5
lea ecx, [edi + edi*2]
shl ecx, 7
add ecx, eax
mov eax, dword [ecx*4 + 0xa96ae0]
test eax, eax
je 0x4c7bd5
mov edx, dword [ebp + 0x10]
push edx
push ebx
call eax
add esp, 8
mov ebx, dword [ebx + 0x58]
test ebx, ebx
jne 0x4c7b14
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub esi, 0x14
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
inc esi
inc edx
shl ecx, 1
dec eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
jmp 0x4c811a
mov al, byte [esi + 4]
mov ecx, eax
mov byte [esp + 0x6c], al
and ecx, 0xff
mov al, 1
shl al, cl
mov ebx, dword [edx + ecx*4 + 0xc]
mov cl, byte [esi + 5]
mov dword [esp + 0x28], ebx
xor cl, al
mov byte [esi + 5], cl
je 0x4c7c7c
mov al, cl
test al, 0xf
je 0x4c7c56
test al, 3
je 0x4c7c45
and cl, 1
jmp 0x4c7c75
mov dl, byte [esi + 5]
shr dl, 2
and dl, 1
add dl, 2
mov byte [esi + 4], dl
jmp 0x4c7c78
test al, 0x30
je 0x4c7c69
mov al, byte [esi + 5]
shr al, 4
and al, 1
add al, 4
mov byte [esi + 4], al
jmp 0x4c7c78
mov cl, byte [esi + 5]
shr cl, 6
and cl, 1
add cl, 6
mov byte [esi + 4], cl
xor byte [esi + 4], 1
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
shr edi, 1
dec edx
dec ecx
mov dword [esp + 0x2c], edx
inc eax
mov edx, esi
mov dword [esp + 0x20], eax
mov al, byte [ebx + 0x30]
add esi, 0x14
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edi
mov dword [esi], ebx
mov byte [esi + 5], al
mov cl, byte [edx + 6]
mov dword [esp + 0x1c], esi
test cl, cl
je 0x4c7d1c
test al, al
mov byte [esi + 6], 1
jbe 0x4c811a
test al, 0xf
je 0x4c7cf0
test al, 3
je 0x4c7cdc
and al, 1
mov byte [esi + 4], al
xor al, 1
mov byte [esi + 4], al
jmp 0x4c811a
shr al, 2
and al, 1
add al, 2
mov byte [esi + 4], al
xor al, 1
mov byte [esi + 4], al
jmp 0x4c811a
test al, 0x30
je 0x4c7d08
shr al, 4
and al, 1
add al, 4
mov byte [esi + 4], al
xor al, 1
mov byte [esi + 4], al
jmp 0x4c811a
shr al, 6
and al, 1
add al, 6
mov byte [esi + 4], al
xor al, 1
mov byte [esi + 4], al
jmp 0x4c811a
mov bl, al
mov eax, dword [esp + 0x1c]
test bl, bl
mov byte [eax + 6], 0
je 0x4c811a
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x2c]
and eax, 0xff
mov esi, dword [edx + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov edi, dword [eax + 0x548000]
shl edi, cl
add edi, esi
mov esi, dword [esp + 0x1c]
mov dword [esi + 8], edi
mov edi, dword [eax + 0x548004]
mov eax, dword [eax + 0x548008]
shl edi, cl
mov ecx, dword [edx + 0xc]
add edi, ecx
mov ecx, dword [esp + 0x2c]
shl eax, cl
mov dword [esi + 0xc], edi
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x40]
add eax, ecx
mov ecx, dword [esi + 8]
cmp edx, ecx
mov dword [esi + 0x10], eax
mov dword [esp + 0x3c], ecx
jg 0x4c7d8d
and bl, 0x55
jmp 0x4c7d96
cmp dword [esp + 0x58], ecx
jl 0x4c7d96
and bl, 0xaa
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x44]
cmp edi, edx
mov dword [esp + 0x50], edx
jg 0x4c7daa
and bl, 0x33
jmp 0x4c7db3
cmp dword [esp + 0x5c], edx
jl 0x4c7db3
and bl, 0xcc
cmp dword [esp + 0x48], eax
jg 0x4c7dbe
and bl, 0xf
jmp 0x4c7dc7
cmp dword [esp + 0x60], eax
jl 0x4c7dc7
and bl, 0xf0
test bl, bl
je 0x4c8079
mov edx, dword [esp + 0x28]
mov edi, dword [ebp + 0x14]
add edx, 0xc
mov dword [esp + 0x34], 0
mov esi, 0x548004
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x34]
mov eax, 1
shl eax, cl
test bl, al
je 0x4c804a
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x4c]
mov dx, word [eax + 0x3a]
or dx, word [eax + 0x38]
and edx, ecx
test dx, dx
jne 0x4c7e27
mov ecx, dword [esp + 0x34]
mov al, 1
shl al, cl
not al
and bl, al
jmp 0x4c804a
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x4c804a
mov ecx, dword [ebp + 0x18]
fld qword [ecx]
fsub qword [edi]
fcom qword [0x534ac0]
fnstsw ax
test ah, 0x41
je 0x4c7f53
fld qword [ecx + 8]
fsub qword [edi + 8]
fcomp qword [0x534ac0]
fnstsw ax
test ah, 0x41
je 0x4c7f53
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x24]
shl eax, cl
mov ecx, dword [ebp + 8]
mov dword [esp + 0x8c], 0
fstp st(0)
sub eax, dword [ecx + 0xde0]
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
shl eax, cl
mov ecx, dword [ebp + 8]
fild dword [esp + 0xc]
sub eax, dword [ecx + 0xde4]
mov ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 8]
mov ecx, dword [ecx]
fild dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp + 0xc], eax
mov dword [esp + 0x88], ecx
fstp qword [esp + 0x120]
fild qword [esp + 0x88]
fstp dword [esp + 0x30]
fild dword [esp + 0xc]
fmul dword [0x533504]
fdiv dword [esp + 0x30]
fstp dword [esp + 0xc]
fld qword [edi]
fsub st(1)
fadd dword [esp + 0x30]
fmul dword [esp + 0xc]
fistp qword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x64], ecx
fstp st(0)
fld qword [edi + 8]
fsub qword [esp + 0x120]
fadd dword [esp + 0x30]
fmul dword [esp + 0xc]
fistp qword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jae 0x4c804a
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jae 0x4c804a
mov eax, dword [esp + 0x64]
push ecx
push eax
push edx
call fcn.004e5580
add esp, 0xc
test eax, eax
jne 0x4c804a
jmp 0x4c803e
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x24]
shl eax, cl
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], 0
sub eax, dword [ecx + 0xde0]
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
shl eax, cl
mov ecx, dword [ebp + 8]
fild dword [esp + 0xc]
sub eax, dword [ecx + 0xde4]
mov ecx, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
fild dword [esp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
fstp qword [esp + 0x108]
mov dword [esp + 0x14], ecx
fild qword [esp + 0x14]
fstp dword [esp + 0x30]
fild dword [edx + 8]
fmul dword [0x533504]
fdiv dword [esp + 0x30]
fstp dword [esp + 0xc]
fld qword [edi]
fsub st(1)
fadd dword [esp + 0x30]
fmul dword [esp + 0xc]
fstp dword [esp + 0x78]
fstp st(0)
fld qword [edi + 8]
fsub qword [esp + 0x108]
fadd dword [esp + 0x30]
fmul dword [esp + 0xc]
fstp dword [esp + 0x7c]
fld dword [esp + 0xc]
fmul st(1)
fstp dword [esp + 0x80]
fstp st(0)
fld qword [eax + 8]
fsub qword [edi + 8]
fmul dword [esp + 0xc]
fstp dword [esp + 0x84]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
push eax
push edx
call fcn.004e5ba0
add esp, 0x14
test eax, eax
jne 0x4c804a
mov ecx, dword [esp + 0x34]
mov dl, 1
shl dl, cl
not dl
and bl, dl
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
add esi, 0xc
inc eax
add edx, 4
cmp esi, 0x548064
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
jl 0x4c7dea
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
test bl, bl
mov byte [esi + 5], bl
je 0x4c80bd
test bl, 0xf
je 0x4c809a
test bl, 3
je 0x4c808f
and bl, 1
jmp 0x4c80b3
shr bl, 2
and bl, 1
add bl, 2
jmp 0x4c80b3
test bl, 0x30
je 0x4c80aa
shr bl, 4
and bl, 1
add bl, 4
jmp 0x4c80b3
shr bl, 6
and bl, 1
add bl, 6
mov al, bl
mov byte [esi + 4], bl
xor al, 1
mov byte [esi + 4], al
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
add eax, ecx
cmp esi, eax
jl 0x4c811a
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
sub ecx, esi
cmp eax, ecx
jg 0x4c811a
mov ecx, esi
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jl 0x4c811a
mov eax, dword [esp + 0x5c]
mov ecx, esi
sub edx, ecx
cmp eax, edx
jg 0x4c811a
mov ecx, dword [esp + 0x1c]
mov edx, esi
mov eax, dword [ecx + 0x10]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x48]
cmp edx, ecx
jl 0x4c811a
mov ecx, dword [esp + 0x60]
mov edx, esi
sub eax, edx
cmp ecx, eax
jg 0x4c811a
mov edx, dword [esp + 0x1c]
mov byte [edx + 6], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4c7a84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret