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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x274
mov eax, dword [0x1009c00c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], ebx
push 0
lea ecx, [esp + 0x54]
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x18]
and eax, 0xf
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], eax
movzx eax, byte [ebp + 0x10]
xor eax, 1
mov dword [esp + 0x48], eax
call sym.VPCmdIF.dll_public:_void___thiscall_CVPSnsFrameA::Fill_struct__SENFRAMEDATA_A__
cmp byte [ebp + 0xc], 0
je 0x10004e17
push dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x44]
push eax
push 0x1007cb20
lea eax, [esp + 0x8c]
push 0x1f4
push eax
call fcn.10002400
add esp, 0x14
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.10003760
test esi, esi
je 0x10005058
add edi, 0x30
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, ecx
xor ebx, ebx
shr eax, 0xc
mov dword [esp + 0x3c], eax
mov eax, ecx
shr eax, 0xd
mov dword [esp + 0x40], eax
mov eax, ecx
shr eax, 0xe
mov dword [esp + 0x4c], eax
mov eax, ecx
shr eax, 0x16
mov dword [esp + 0x38], eax
cmp dword [esp + 0x48], ebx
je 0x10004b97
mov eax, dword [edi - 4]
movq xmm0, qword [edi - 0xc]
push ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], eax
mov eax, ecx
and ecx, 0xc00
shr eax, 0xa
sub ecx, 0x800
movq qword [esp + 0x58], xmm0
and eax, 3
neg ecx
sbb ecx, ecx
add ecx, 4
movss xmm0, dword [eax*4 + sym.VPCmdIF.dll_float__CVPSnsFrameA::OriFractFactor]
movss dword [esp], xmm0
push ecx
push edi
lea ecx, [esp + 0x5c]
call sym.VPCmdIF.dll_public:_void___thiscall_CVPSnsFrameA::ConvertOri_short_int___int__float_
movsx eax, word [edi + 8]
lea esi, [esp + 0x50]
movss xmm1, dword [0x1008ab3c]
lea ebx, [esp + 0x70]
movss xmm2, dword [0x1008ab60]
mov ecx, dword [esp + 0x50]
movd xmm0, eax
movsx eax, word [edi + 0xa]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x70], xmm0
movd xmm0, eax
movsx eax, word [edi + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x74], xmm0
movd xmm0, eax
movsx eax, word [edi + 0xe]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x78], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
mulss xmm0, xmm2
movss dword [esp + 0x7c], xmm0
and ecx, 0x7f
lea eax, [esp + 0x80]
add ecx, dword [esp + 0x44]
push ecx
push 0x1007cb30
push 0x1f4
push eax
call fcn.10002400
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x90]
add esp, 0x10
push eax
call fcn.10003760
mov eax, dword [esp + 0x40]
and eax, 1
add eax, 0x30
push eax
mov eax, dword [esp + 0x40]
and eax, 1
add eax, 0x30
push eax
push 0x1007cb3c
lea eax, [esp + 0x8c]
push 0x1f4
push eax
call fcn.10002400
mov ecx, dword [esp + 0x44]
add esp, 0x14
push str.bb
call fcn.10003760
mov ecx, dword [esp + 0x4c]
movzx eax, cl
push eax
push 0x1007cb4c
lea eax, [esp + 0x88]
push 0x1f4
push eax
call fcn.10002400
mov ecx, dword [esp + 0x40]
add esp, 0x10
push str._d
call fcn.10003760
push dword [esp + 0x38]
lea eax, [esp + 0x84]
push 0x1007cb5c
push 0x1f4
push eax
call fcn.10002400
mov ecx, dword [esp + 0x40]
add esp, 0x10
push str._ax
call fcn.10003760
movss xmm0, dword [esi + 0xc]
lea eax, [esp + 0x80]
cvtps2pd xmm0, xmm0
sub esp, 0x18
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x1007cb6c
push 0x1f4
push eax
call fcn.10002400
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0xa4]
add esp, 0x24
push eax
call fcn.10003760
mov eax, dword [esi]
and eax, 0xc00
cmp eax, 0x800
lea eax, [esp + 0x80]
jne 0x10004d1f
movss xmm0, dword [esi + 0x1c]
sub esp, 0x20
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x14]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x1007cb88
push 0x1f4
push eax
call fcn.10002400
add esp, 0x2c
jmp 0x10004d5e
movss xmm0, dword [esi + 0x18]
sub esp, 0x18
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x14]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi + 0x10]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x1007cba8
push 0x1f4
push eax
call fcn.10002400
add esp, 0x24
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call fcn.10003760
cmp byte [ebp + 0x14], 0
je 0x10004df2
lea eax, [esp + 0x80]
test ebx, ebx
jne 0x10004d97
push 0x1007cbc4
push 0x1f4
push eax
call fcn.10002400
add esp, 0xc
jmp 0x10004de3
movss xmm0, dword [ebx + 0xc]
sub esp, 0x20
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [ebx + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [ebx + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [ebx]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push 0x1007cbd4
push 0x1f4
push eax
call fcn.10002400
add esp, 0x2c
lea eax, [esp + 0x80]
mov ecx, esi
push eax
call fcn.10003760
add edi, 0x20
sub dword [esp + 0x34], 1
jne 0x10004a96
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.100417b6
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x14], 0
mov ecx, 0x1007caa0
mov esi, dword [edi + 0x20]
mov eax, 0x1007cabc
cmove eax, ecx
mov dword [esp + 0x34], 0
add edi, 0x20
mov dword [0x1009dc30], eax
mov ecx, esi
shr ecx, 8
and ecx, 3
cmp dword [0x1009cf70], 4
mov dword [esp + 0x38], ecx
jne 0x10004e5b
call sym.VPCmdIF.dll_public:_static_void___cdecl_CVPcmd::InitUnitsInfo_void_
mov esi, dword [edi]
mov ecx, dword [esp + 0x38]
lea eax, [ecx*8]
shr esi, 0xa
sub eax, ecx
and esi, 3
cmp dword [0x1009cd88], 3
mov eax, dword [eax*4 + 0x1009cf7c]
mov dword [esp + 0x38], eax
jne 0x10004e83
call sym.VPCmdIF.dll_public:_static_void___cdecl_CVPcmd::InitUnitsInfo_void_
lea eax, [esi*8]
sub eax, esi
cmp dword [esp + 0x48], 0
mov esi, dword [eax*4 + 0x1009cd94]
je 0x10004f6e
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
movq xmm0, qword [edi + 4]
push ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], eax
mov eax, ecx
and ecx, 0xc00
shr eax, 0xa
sub ecx, 0x800
movq qword [esp + 0x58], xmm0
and eax, 3
neg ecx
sbb ecx, ecx
add ecx, 4
movss xmm0, dword [eax*4 + sym.VPCmdIF.dll_float__CVPSnsFrameA::OriFractFactor]
lea eax, [edi + 0x10]
movss dword [esp], xmm0
push ecx
push eax
lea ecx, [esp + 0x5c]
call sym.VPCmdIF.dll_public:_void___thiscall_CVPSnsFrameA::ConvertOri_short_int___int__float_
movsx eax, word [edi + 0x18]
movss xmm2, dword [0x1008ab3c]
movss xmm1, dword [0x1008ab60]
movd xmm0, eax
movsx eax, word [edi + 0x1a]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
mulss xmm0, xmm1
movss dword [esp + 0x70], xmm0
movd xmm0, eax
movsx eax, word [edi + 0x1c]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
mulss xmm0, xmm1
movss dword [esp + 0x74], xmm0
movd xmm0, eax
movsx eax, word [edi + 0x1e]
lea edi, [esp + 0x50]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
mulss xmm0, xmm1
movss dword [esp + 0x78], xmm0
movd xmm0, eax
lea eax, [esp + 0x70]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x34], eax
mulss xmm0, xmm2
mulss xmm0, xmm1
movss dword [esp + 0x7c], xmm0
push 0x1007cbf8
lea eax, [esp + 0x84]
push 0x1f4
push eax
call fcn.10002400
add esp, 0xc
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.10003760
push str.bb
mov ecx, ebx
call fcn.10003760
mov eax, dword [esp + 0x38]
push eax
push eax
push eax
push str.__X__2s_.....__Y__2s_.....__Z__2s_.....
lea eax, [esp + 0x90]
push 0x1f4
push eax
call fcn.10002400
add esp, 0x18
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.10003760
mov eax, dword [edi]
and eax, 0xc00
cmp eax, 0x800
lea eax, [esp + 0x80]
jne 0x10004ffd
push 0x1007cc38
push 0x1f4
push eax
call fcn.10002400
add esp, 0xc
jmp 0x10005013
push esi
push esi
push esi
push str._Az__3s_._El__3s_._Ro__3s_.
push 0x1f4
push eax
call fcn.10002400
add esp, 0x18
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.10003760
cmp byte [ebp + 0x14], 0
je 0x10005058
cmp dword [esp + 0x34], 0
je 0x10005058
push 0x1007cc80
lea eax, [esp + 0x84]
push 0x1f4
push eax
call fcn.10002400
add esp, 0xc
lea eax, [esp + 0x80]
mov ecx, ebx
push eax
call fcn.10003760
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100417b6
mov esp, ebp
pop ebp
ret 0x10