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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [0x6815a8]
push ebp
mov dword [esp + 0x44], ebx
mov ebp, dword [ebx + 0x3f04]
mov dword [esp + 0x2c], ebp
cmp byte [ebp + 0xc8], 0
jne 0x4a810b
push esi
mov esi, dword [ebx + 0x4334]
mov ecx, 0x574d55
push edi
push 0
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x10]
mov dword [esp + 0x20], eax
imul eax, eax, 0x68
add edi, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
test eax, eax
cmovne ecx, eax
push ecx
mov dword [esp + 0x38], ecx
call fcn.00474380
add esp, 4
mov dword [esp + 0x58], eax
mov dword [esp], 0xbf800000
push 1
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x70]
push eax
call fcn.00469880
movss xmm3, dword [ebp + 0x108]
add esp, 0x14
movss dword [esp + 0x58], xmm3
movss xmm0, dword [ebp + 0x10c]
movss dword [esp + 0x5c], xmm0
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x38]
movss xmm1, dword [esi + 0xf0]
movss xmm0, dword [eax + 8]
comiss xmm0, xmm1
movss xmm2, dword [eax + 0xc]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x14], xmm2
jae 0x4a79dc
movss dword [esp + 0x18], xmm1
movss xmm0, dword [esi + 0xf8]
comiss xmm0, xmm2
ja 0x4a79ef
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esi + 0x64]
xorps xmm2, xmm2
movss xmm1, dword [esi + 0xa8]
movss dword [esp + 0x40], xmm0
addss xmm1, xmm1
movss xmm0, dword [esi + 0x68]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esi + 0x6c]
mov dword [esp + 0x24], 0
test byte [esi + 4], 8
subss xmm0, xmm1
movss xmm1, dword [esp + 0x64]
movss dword [esp + 0x28], xmm2
maxss xmm1, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x3c], xmm1
je 0x4a7ad4
test dword [edi], 0x200
jne 0x4a7ad4
movss xmm0, dword [ebx + 0x3c98]
mulss xmm0, dword [0x54716c]
addss xmm0, dword [ebx + 0x3890]
cvttss2si eax, xmm0
movd xmm1, eax
mov al, byte [edi + 0x56]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x20], xmm1
test al, al
jle 0x4a7ad4
movsx eax, al
inc eax
push eax
push 0x5470a8
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.00475930
add esp, 0xc
lea eax, [esp + 0x28]
mov dword [esp], 0xbf800000
push 0
push 0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00469880
movss xmm2, dword [ebx + 0x38a8]
add esp, 0x14
movss xmm3, dword [esp + 0x58]
addss xmm2, dword [eax]
movss dword [esp + 0x28], xmm2
movss xmm1, dword [esp + 0x60]
movss xmm0, dword [edi + 0x48]
addss xmm1, xmm3
maxss xmm0, dword [edi + 0x38]
addss xmm1, xmm2
movss dword [edi + 0x48], xmm0
movss xmm0, dword [edi + 0x4c]
addss xmm1, dword [esp + 0x20]
maxss xmm0, xmm1
movss dword [edi + 0x4c], xmm0
cmp byte [esi + 0x1ce], 0
je 0x4a7b2a
movsx eax, byte [esi + 0x1c0]
cmp eax, dword [esp + 0x1c]
jne 0x4a7b2a
mov ax, word [esi + 0x62]
mov byte [esp + 0x11], 1
cmp ax, word [esi + 0x60]
je 0x4a7b2f
mov byte [esp + 0x11], 0
push 0
push dword [esp + 0x34]
mov ecx, ebp
call fcn.00474d40
movss xmm0, dword [ebx + 0x38b4]
mov ebp, eax
movss xmm1, dword [esp + 0x18]
addss xmm0, xmm0
movss xmm2, dword [esp + 0x40]
lea eax, [esp + 0x44]
movss dword [esp + 0x68], xmm1
movss xmm1, dword [esp + 0x14]
movss dword [esp + 0x70], xmm1
movss xmm1, dword [esp + 0x3c]
movss dword [esp + 0x6c], xmm2
addss xmm2, xmm1
push ecx
mov dword [esp], 0xbf800000
push eax
movss dword [esp + 0x50], xmm1
addss xmm2, xmm0
movss xmm0, dword [esp + 0x4c]
mov dword [esp + 0x4c], 0
maxss xmm0, xmm2
movss dword [esp + 0x7c], xmm0
call fcn.00476f50
push 0
push 0
lea eax, [esp + 0x78]
push ebp
push eax
call fcn.00476c90
add esp, 0x18
test al, al
je 0x4a8109
push 0x1000
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x74]
push ebp
push eax
call fcn.0049a1c0
add esp, 0x14
mov byte [esp + 0x13], al
cmp dword [ebx + 0x3f40], ebp
je 0x4a7bf4
call fcn.004808e0
cmp byte [esp + 0x10], 0
jne 0x4a7c3d
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x4a7c31
cmp byte [esp + 0x11], cl
jne 0x4a7c31
test byte [esi + 0x78], 1
jne 0x4a7c5e
push dword [esi + 0x5c]
push ecx
mov dword [esp], 0x3f800000
push 0x2c
call fcn.00474aa0
add esp, 8
push eax
push 3
call fcn.004a9200
add esp, 0xc
jmp 0x4a7c5e
xor eax, eax
test cl, cl
setne al
add eax, 0x18
jmp 0x4a7c42
mov eax, 0x1a
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.00474aa0
push dword [esi + 0x5c]
push eax
push 3
call fcn.004a9200
add esp, 0x14
push 0xa
lea eax, [esp + 0x6c]
push ebp
push eax
call fcn.0047dd40
add esp, 0xc
cmp byte [esp + 0x10], 0
je 0x4a7c7f
mov eax, dword [esp + 0x1c]
mov byte [esi + 0x1b9], al
movss xmm1, dword [ebx + 0x38a4]
mov eax, dword [esp + 0x34]
mulss xmm1, dword [0x672008]
movss xmm0, dword [eax + 0x10c]
subss xmm0, xmm1
movss dword [eax + 0x10c], xmm0
cmp byte [esp + 0x10], 0
je 0x4a7da4
test byte [esi + 4], 2
je 0x4a7da4
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.00476960
add esp, 8
test al, al
je 0x4a7da4
cmp byte [ebx + 0x4294], 0
jne 0x4a7da4
mov eax, dword [esp + 0x1c]
xorps xmm1, xmm1
mov byte [esi + 0x1ba], al
mov ax, word [esi + 0x60]
mov word [esi + 0x62], ax
comiss xmm1, dword [ebx + 0xb4]
jbe 0x4a7d4c
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [ebx + 0xd58]
jbe 0x4a7d4c
mov al, byte [edi + 0x54]
cmp al, 0xff
je 0x4a7d4c
movsx eax, al
imul ebp, eax, 0x68
add ebp, dword [esi + 0x10]
je 0x4a7d4c
mov eax, dword [edi]
or eax, dword [ebp]
test al, 0x40
jne 0x4a7d4c
mov cl, byte [esi + 0x1c3]
xor edx, edx
cmp byte [ebp + 0x53], cl
setl dl
xor eax, eax
cmp byte [edi + 0x53], cl
setl al
cmp eax, edx
jne 0x4a7d4c
mov byte [esi + 0x1bb], 0xff
movss xmm0, dword [ebx + 0xb4]
comiss xmm0, xmm1
jbe 0x4a7da4
movss xmm0, dword [ebx + 0xd58]
comiss xmm0, dword [esp + 0x14]
jbe 0x4a7da4
mov al, byte [edi + 0x55]
cmp al, 0xff
je 0x4a7da4
movsx eax, al
imul ebp, eax, 0x68
add ebp, dword [esi + 0x10]
je 0x4a7da4
mov eax, dword [edi]
or eax, dword [ebp]
test al, 0x40
jne 0x4a7da4
mov cl, byte [esi + 0x1c3]
xor edx, edx
cmp byte [ebp + 0x53], cl
setl dl
xor eax, eax
cmp byte [edi + 0x53], cl
setl al
cmp eax, edx
jne 0x4a7da4
mov byte [esi + 0x1bb], 1
test byte [esi + 4], 8
movss xmm0, dword [esp + 0x14]
subss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x28]
movss dword [esp + 0x14], xmm0
je 0x4a8042
test dword [edi], 0x200
jne 0x4a8042
mov al, byte [edi + 0x56]
cmp al, 0xff
je 0x4a7ebf
movss xmm0, dword [esp + 0x18]
movss xmm1, dword [esp + 0x5c]
movss dword [esp + 0x20], xmm1
maxss xmm0, dword [esp + 0x14]
movss dword [esp + 0x18], xmm0
test al, al
jle 0x4a7e68
push ecx
mov dword [esp], 0x3f333333
push 0
call fcn.00474aa0
push eax
push 0
call fcn.0047c920
movss xmm0, dword [esp + 0x28]
lea eax, [esp + 0x34]
addss xmm0, dword [ebx + 0x38a8]
push 1
push 0
push eax
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x64], xmm0
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.0047e070
push 1
call fcn.0047c4b0
movss xmm0, dword [esp + 0x40]
add esp, 0x28
addss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x20]
mov al, byte [edi + 0x65]
push ecx
xor ecx, ecx
mov dword [esp], 0x3f266666
and al, 3
movss dword [esp + 0x48], xmm0
cmp al, 1
movss dword [esp + 0x4c], xmm1
setne cl
add ecx, 2
push ecx
push ecx
mov dword [esp], 0x3f800000
push 0
call fcn.00474aa0
add esp, 8
push eax
push dword [esp + 0x54]
mov eax, dword [esp + 0x44]
push dword [esp + 0x54]
push dword [eax + 0x288]
call fcn.0048d220
movss xmm0, dword [esp + 0x2c]
add esp, 0x18
cmp byte [esp + 0x13], 0
je 0x4a8042
movsx eax, byte [esi + 0x1ba]
cmp eax, dword [esp + 0x1c]
je 0x4a8042
cmp byte [edi + 0x56], 0xff
mov al, byte [edi + 0x66]
mov byte [esp + 0x11], al
jne 0x4a7ef1
movzx edx, al
mov dword [esp + 0x28], edx
jmp 0x4a7f41
mov dl, byte [edi + 0x65]
xor ecx, ecx
mov ah, dl
mov byte [esp + 0x13], dl
and ah, 3
nop
lea edx, [ecx + 1]
add cl, cl
shr al, cl
and al, 3
cmp ah, al
je 0x4a7f22
mov al, byte [esp + 0x11]
mov ecx, edx
cmp ecx, 3
jl 0x4a7f00
mov dword [esp + 0x28], 0
jmp 0x4a7f41
movzx ecx, byte [esp + 0x13]
mov eax, edx
shr ecx, 2
and ecx, 3
cdq
idiv ecx
movzx eax, byte [esp + 0x11]
add dl, dl
mov ecx, edx
shr eax, cl
mov dword [esp + 0x28], eax
mov eax, dword [0x6815a8]
mov edi, dword [eax + 0x4334]
mov ecx, dword [edi + 4]
and ecx, 0x4000000
neg ecx
sbb cl, cl
and cl, byte [ebx + 0xd75]
mov bl, 0
mov dword [esp + 0x20], ecx
je 0x4a7f8e
mov ebp, dword [edi + 0x54]
test ebp, ebp
jle 0x4a7f8e
mov esi, dword [edi + 0x10]
add esi, 0x56
cmp bl, byte [esi]
lea esi, [esi + 0x68]
movzx edx, byte [esi - 0x68]
movzx eax, bl
cmovge edx, eax
mov bl, dl
sub ebp, 1
jne 0x4a7f74
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x10]
add edx, dword [esp + 0x38]
mov dword [esp + 0x38], edx
mov al, byte [edx + 0x65]
xor al, byte [esp + 0x28]
and al, 3
xor byte [edx + 0x65], al
test byte [edx + 0x65], 3
jne 0x4a7fb1
mov byte [edx + 0x56], 0xff
jmp 0x4a7fc4
cmp byte [edx + 0x56], 0xff
je 0x4a8111
test cl, cl
jne 0x4a7fc4
xor bl, bl
mov byte [edx + 0x56], bl
cmp dword [edi + 0x54], 0
mov dword [esp + 0x28], 0
jle 0x4a8030
xor ebp, ebp
mov esi, dword [edi + 0x10]
add esi, ebp
cmp esi, edx
je 0x4a7fe5
test cl, cl
jne 0x4a7fe5
mov byte [esi + 0x56], 0xff
cmp byte [esi + 0x56], 0xff
je 0x4a801b
mov bl, byte [esi + 0x65]
mov eax, 1
movzx edx, bl
mov ecx, edx
shr edx, 4
and ecx, 3
shl eax, cl
test edx, eax
mov edx, dword [esp + 0x38]
jne 0x4a801b
mov al, byte [esi + 0x66]
xor al, bl
and al, 3
xor al, bl
mov byte [esi + 0x65], al
mov byte [edi + 0x1cc], 1
mov ecx, dword [esp + 0x28]
add ebp, 0x68
inc ecx
cmp ecx, dword [edi + 0x54]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
jl 0x4a7fd4
mov ebx, dword [esp + 0x4c]
mov byte [edi + 0x1d0], 1
mov byte [edi + 0x1cc], 1
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x60]
mov esi, dword [esp + 0x30]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0x5c]
addss xmm0, dword [esp + 0x3c]
push eax
push ebp
push esi
sub esp, 8
lea eax, [esp + 0x60]
addss xmm0, dword [ebx + 0x3894]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 4], xmm0
movss dword [esp], xmm0
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 0x288]
call fcn.0047e3d0
movss xmm1, dword [esp + 0x34]
add esp, 0x20
subss xmm1, dword [esp + 0x58]
movss xmm0, dword [esp + 0x60]
comiss xmm0, xmm1
jbe 0x4a80e1
cmp byte [esp + 0x12], 0
je 0x4a80e1
movss xmm0, dword [ebx + 0x3f3c]
comiss xmm0, dword [ebx + 0x5304]
jbe 0x4a80e1
push esi
sub ebp, esi
push ebp
push str._.s
call fcn.00480f70
add esp, 0xc
push 1
call fcn.00476ab0
add esp, 4
test al, al
je 0x4a8109
push 0
call fcn.004766c0
add esp, 4
test al, al
je 0x4a8109
push dword [esp + 0x1c]
call fcn.004a8eb0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
test cl, cl
je 0x4a7fbf
inc bl
jmp 0x4a7fc1