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

Disassembly:
sub esp, 0x298
push ebp
push 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
call fcn.004a8b10
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x34], ebp
je 0x4a5c3d
push ebx
push esi
push edi
jmp 0x4a53c9
mov ebp, dword [esp + 0x40]
push 0x80
lea eax, [esp + 0x1ac]
push eax
push str.classname
push ebp
call fcn.004a8b60
add esp, 0x10
test eax, eax
je 0x4a5c25
mov esi, str.func_plat
lea eax, [esp + 0x1a8]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4a5420
test cl, cl
je 0x4a541c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4a5420
add eax, 2
add esi, 2
test cl, cl
jne 0x4a53f8
xor eax, eax
jmp 0x4a5425
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a5c25
push 0x80
lea eax, [esp + 0x22c]
push eax
push str.model
push ebp
call fcn.004a8b60
add esp, 0x10
test eax, eax
jne 0x4a5461
push str.func_plat_without_model_n
push 3
call dword [0xc6aa00]
add esp, 8
jmp 0x4a5c25
lea ecx, [esp + 0x229]
push ecx
call fcn.004aebeb
add esp, 4
test eax, eax
mov dword [esp + 0xac], eax
jg 0x4a5491
push str.func_plat_with_invalid_model_number_n
push 3
call dword [0xc6aa00]
add esp, 8
jmp 0x4a5c25
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xbc]
push ecx
push eax
call fcn.004a8ae0
lea edx, [esp + 0x88]
push edx
push str.origin
push ebp
call fcn.004a8bf0
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov dword [esp + 0xbc], ecx
lea ecx, [esp + 0x88]
push ecx
push 0x4d70d4
push ebp
mov dword [esp + 0x188], eax
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], eax
call fcn.004a8ca0
fld dword [esp + 0x94]
fcomp dword [0x4bc2d8]
add esp, 0x2c
fnstsw ax
test ah, 0x40
je 0x4a5524
mov dword [esp + 0x68], 0x41000000
lea edx, [esp + 0x34]
push edx
push str.height
push ebp
call fcn.004a8ca0
fld dword [esp + 0x40]
fcomp dword [0x4bc2d8]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4a5558
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
fsub dword [esp + 0x68]
fstp dword [esp + 0x34]
lea eax, [esp + 0x6c]
push eax
push str.speed
push ebp
call fcn.004a8ca0
fld dword [esp + 0x78]
fcomp dword [0x4bc2d8]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4a5584
mov dword [esp + 0x6c], 0x43480000
fld dword [esp + 0xa4]
xor eax, eax
fsub dword [esp + 0x34]
fld dword [esp + 0x10]
fadd dword [esp + 0x1c]
fld st(0)
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fst dword [esp + 0x3c]
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
fmul qword [0x4bc320]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x8c]
fld dword [esp + 0x48]
mov dword [esp + 0x48], ecx
fmul qword [0x4bc320]
fadd dword [esp + 0xa0]
fstp dword [esp + 0x90]
fld dword [esp + 0x15c]
fsub st(2)
fsubr dword [esp + 0x18]
fadd dword [0x4bc304]
fstp dword [esp + 0x94]
fstp st(1)
fmul qword [0x4bc320]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x80]
fld dword [esp + 0x48]
fmul qword [0x4bc320]
fadd dword [esp + 0xa0]
fstp dword [esp + 0x84]
fld dword [esp + 0x18]
fadd dword [0x4bc304]
fstp dword [esp + 0x88]
fld dword [esp + eax + 0x1c]
add eax, 4
cmp eax, 0xc
fsub dword [0x4bc318]
fstp dword [esp + eax + 0x18]
fld dword [esp + eax + 0xc]
fadd dword [0x4bc318]
fstp dword [esp + eax + 0xc]
jl 0x4a5638
fld dword [esp + 0x10]
mov eax, dword [esp + 0x10]
fadd dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x14]
mov dword [esp + 0x11c], eax
fadd dword [esp + 0x20]
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x138], edx
mov edx, dword [esp + 0x1c]
fstp dword [esp + 0x48]
mov dword [esp + 0x124], edx
fmul qword [0x4bc320]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x20]
xor ebx, ebx
fst dword [esp + 0x44]
mov dword [esp + 0x14c], edx
fld dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
fmul qword [0x4bc320]
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
mov eax, ecx
fst dword [esp + 0x118]
mov dword [esp + 0x134], ecx
fstp dword [esp + 0x120]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x140], ecx
mov ecx, eax
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x12c], ecx
mov ecx, eax
mov dword [esp + 0x144], eax
mov eax, edx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x150], eax
cmp ebx, 0x20
jge 0x4a57d0
fld dword [esp + 0x74]
lea ecx, [esp + 0x28]
fadd dword [esp + ebx + 0x114]
push ecx
fstp dword [esp + 0x2c]
fld dword [esp + 0x7c]
fadd dword [esp + ebx + 0x138]
fstp dword [esp + 0x30]
fld dword [esp + 0x98]
fadd dword [0x4bc2f8]
fstp dword [esp + 0x34]
call fcn.004a9470
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
xor esi, esi
jmp 0x4a577d
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4a579b
push edi
call fcn.004a0b80
add esp, 4
test eax, eax
jne 0x4a57c5
push edi
call fcn.004a0b60
add esp, 4
test eax, eax
jne 0x4a57c5
fld dword [esp + 0x30]
lea edx, [esp + 0x28]
fadd dword [0x4bc398]
push edx
fstp dword [esp + 0x34]
call fcn.004a9470
add esp, 4
inc esi
cmp esi, 0x10
mov dword [esp + 0x38], eax
jl 0x4a5779
jmp 0x4a5c15
cmp esi, 0x10
jge 0x4a5c15
jmp 0x4a5837
fld dword [esp + 0x88]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
fadd dword [0x4bcdb4]
lea edx, [esp + 0x28]
push edx
fstp dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call fcn.004a9470
add esp, 4
test eax, eax
mov dword [esp + 0x38], eax
je 0x4a5c15
fld dword [esp + 0x94]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
fadd dword [0x4bcdb4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
fstp dword [esp + 0x30]
mov dword [esp + 0x70], 0
xor eax, eax
fld dword [esp + eax + 0x1c]
add eax, 4
cmp eax, 0xc
fsub dword [0x4bc398]
fstp dword [esp + eax + 0x18]
fld dword [esp + eax + 0xc]
fadd dword [0x4bc398]
fstp dword [esp + eax + 0xc]
jl 0x4a5841
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x88]
mov eax, dword [esp + 0x44]
fadd dword [0x4bc2f8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xd4], edx
mov edx, eax
fstp dword [esp + 0xa8]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe0], edx
mov edx, eax
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xfc], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x100], eax
mov eax, edx
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xec], eax
mov eax, edx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xf0], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], eax
mov edx, ecx
xor eax, eax
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], edx
mov dword [esp + 0x98], eax
fld dword [esp + 0x74]
lea ecx, [esp + 0x5c]
fadd dword [esp + eax + 0xd4]
push ecx
fstp dword [esp + 0x60]
fld dword [esp + 0x7c]
fadd dword [esp + eax + 0xf8]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x68], eax
fstp dword [esp + 0x64]
call fcn.004a9470
add esp, 4
mov ebx, eax
xor ebp, ebp
test ebx, ebx
je 0x4a5a23
push ebx
call fcn.004a0b80
add esp, 4
test eax, eax
jne 0x4a5984
push ebx
call fcn.004a0b60
add esp, 4
test eax, eax
je 0x4a5a23
fld dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x5c]
fadd dword [0x4bc2f0]
push 0xffffffffffffffff
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0x64]
fstp dword [esp + 0xd4]
fld dword [esp + 0x68]
mov dword [esp + 0xd0], eax
push 4
lea eax, [esp + 0xc4]
mov dword [esp + 0xc4], ecx
push eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0xcc], edx
fadd dword [0x4bc318]
push ecx
lea edx, [esp + 0x194]
push edx
fstp dword [esp + 0xd8]
call fcn.004a9720
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x174]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x178]
fcomp dword [0x4bc318]
fnstsw ax
add esp, 0x14
test ah, 1
je 0x4a5a4f
fld dword [esp + 0x64]
lea eax, [esp + 0x5c]
fadd dword [0x4bc398]
push eax
fstp dword [esp + 0x68]
call fcn.004a9470
add esp, 4
inc ebp
cmp ebp, 0x10
mov ebx, eax
jl 0x4a595e
jmp 0x4a5be1
cmp ebp, 0x10
jge 0x4a5be1
mov esi, dword [esp + 0x38]
cmp ebx, esi
je 0x4a5be1
push ebx
call fcn.004a0b80
add esp, 4
test eax, eax
je 0x4a5be1
push ebx
push esi
call fcn.004a0c40
add esp, 8
test eax, eax
jne 0x4a5be1
fld dword [esp + 0x28]
lea ecx, [esp + 0x50]
fsub dword [esp + 0x8c]
push ecx
fstp dword [esp + 0x54]
fld dword [esp + 0x30]
fsub dword [esp + 0x94]
fstp dword [esp + 0x58]
fld dword [esp + 0x34]
fsub dword [esp + 0x98]
fstp dword [esp + 0x5c]
call fcn.0042c7d0
mov edx, dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x54]
add esp, 4
fmul dword [0x4bcdb4]
mov dword [esp + 0x58], edx
xor ecx, ecx
fadd dword [esp + 0x28]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [0x4bcdb4]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x54]
fld dword [esp + ecx*4 + 0x1c]
fadd dword [esp + ecx*4 + 0x74]
fcomp dword [esp + ecx*4 + 0x50]
fnstsw ax
test ah, 0x41
je 0x4a5b22
fld dword [esp + ecx*4 + 0x10]
fadd dword [esp + ecx*4 + 0x74]
fcomp dword [esp + ecx*4 + 0x50]
fnstsw ax
test ah, 1
jne 0x4a5b22
inc ecx
cmp ecx, 3
jl 0x4a5af1
jmp 0x4a5be1
cmp ecx, 3
jge 0x4a5be1
call fcn.004a08e0
mov esi, eax
test esi, esi
je 0x4a5be1
mov eax, dword [esp + 0xac]
mov dword [esi + 4], eax
mov dword [esi], ebx
fld dword [esp + 0x34]
call fcn.004aeed0
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x58]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x64]
push ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0xb
call fcn.004a4b30
mov ecx, dword [esi + 0x24]
or ecx, eax
mov dword [esi + 0x24], ecx
fld dword [esp + 0x38]
fmul dword [0x4bc40c]
add esp, 4
fdiv dword [esp + 0x6c]
fadd dword [0xc68908]
call fcn.004aeed0
mov word [esi + 0x28], ax
mov edx, dword [0xc68810]
mov eax, dword [esp + 0x38]
mov ecx, dword [edx + eax*4]
mov dword [esi + 0x2c], ecx
mov edx, dword [0xc68810]
mov dword [edx + eax*4], esi
mov eax, dword [0xc68820]
inc eax
mov dword [esp + 0x70], 0x270f
mov dword [0xc68820], eax
mov eax, dword [esp + 0x98]
add eax, 4
cmp eax, 0x20
mov dword [esp + 0x98], eax
jl 0x4a5924
mov eax, dword [esp + 0x70]
inc eax
cmp eax, 3
mov dword [esp + 0x70], eax
jl 0x4a583f
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
add ebx, 4
cmp ebx, 0x24
mov dword [esp + 0x3c], ebx
jl 0x4a572a
push ebp
call fcn.004a8b10
add esp, 4
test eax, eax
mov dword [esp + 0x40], eax
jne 0x4a53c5
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x298
ret