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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49df22
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov dword [esi], edi
mov eax, dword [edi + 0x614]
test eax, eax
je 0x49d86d
push 2
lea eax, [ebp - 0xcc]
push str.PowerCurve_d
push eax
call fcn.004bd200
add esp, 0xc
mov ebx, dword [ebp + 0x10]
jmp 0x49d888
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0xcc]
mov eax, dword [ebx]
inc eax
push eax
push str.PowerCurve_d
push ecx
call fcn.004bd200
add esp, 0xc
mov dword [esi + 0x80], 0x3d4ccccd
mov dword [esi + 0x1ec], 0x3f555326
mov eax, dword [edi + 0x8f4]
mov ecx, dword [eax + 0x954]
cmp ecx, 1
lea ecx, [esi + 8]
jne 0x49d8c7
mov eax, 0x3fc00000
mov dword [ecx], 0x3fd9999a
mov dword [esi + 0xc], 0x3fcccccd
mov dword [esi + 0x10], eax
jmp 0x49d8e0
mov eax, 0x3fe66666
mov dword [ecx], 0x3ff9999a
mov dword [esi + 0xc], 0x3ff33333
mov dword [esi + 0x10], 0x3feccccd
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xbf800000
mov dword [esi + 0x84], 0
xor eax, eax
mov edx, dword [ecx]
cmp edx, 0x80000000
ja 0x49d91e
mov edx, dword [esi + 0x84]
add ecx, 4
inc edx
inc eax
mov dword [esi + 0x84], edx
cmp eax, 6
jl 0x49d8f9
jmp 0x49d9ac
cmp eax, 5
jge 0x49d9ac
mov edi, dword [ebp + 8]
push edi
push str.Gear_Ratios_invalid_in__s_n
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0x1cc]
mov ecx, dword [0x4e2fdc]
nop
push eax
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [0x523400]
test ecx, ecx
jne 0x49d96c
push 0x4df83c
push str.errlog.txt
call fcn.004bd1c0
add esp, 8
mov dword [0x523400], eax
lea eax, [ebp - 0x1cc]
mov ecx, dword [0x523400]
push eax
push ecx
call fcn.004bd270
add esp, 8
mov ecx, dword [0x523400]
push ecx
call fcn.004bfe90
add esp, 4
mov ecx, dword [0x523400]
push ecx
call fcn.004bd0c0
add esp, 4
push 0xffffffffffffffff
call fcn.004bece0
add esp, 4
jmp 0x49d9af
mov edi, dword [ebp + 8]
mov dword [esi + 0x150], 1
mov dword [esi + 0x140], 0x461c4000
mov dword [esi + 0x64], 0x41b00000
mov dword [esi + 0x68], 0x42240000
mov dword [esi + 0x6c], 0x42700000
mov dword [esi + 0x70], 0x42980000
mov dword [esi + 0x74], 0x42be0000
mov dword [esi + 0x144], 0xbb8
mov dword [esi + 0x148], 0x280a
xor ecx, ecx
mov dword [esi + 0x14c], ecx
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], ecx
mov dword [esi + 0x88], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x5c], ecx
mov dword [esi + 0x88], 1
mov eax, dword [ebx]
cmp eax, ecx
je 0x49da44
cmp eax, 1
je 0x49db19
cmp eax, 2
je 0x49dbf9
jmp 0x49dcc9
mov dword [esi + 0x88], 0xd
mov dword [ebp - 0xa8], 0x453b8000
mov dword [ebp - 0xa4], 0x454b2000
mov dword [ebp - 0xa0], 0x456a6000
mov dword [ebp - 0x9c], 0x45947000
mov dword [ebp - 0x98], 0x45a41000
mov dword [ebp - 0x94], 0x45b3b000
mov dword [ebp - 0x90], 0x45d2f000
mov dword [ebp - 0x8c], 0x45e29000
mov dword [ebp - 0x88], 0x4600e800
mov dword [ebp - 0x84], 0x4608b800
mov dword [ebp - 0x80], 0x46108800
mov dword [ebp - 0x7c], 0x46202800
mov dword [ebp - 0x58], 0x41200000
mov dword [ebp - 0x54], 0x41380000
mov dword [ebp - 0x50], 0x41700000
mov dword [ebp - 0x4c], 0x41a40000
mov dword [ebp - 0x48], 0x41c00000
mov dword [ebp - 0x44], 0x41d00000
mov dword [ebp - 0x40], 0x421c0000
mov dword [ebp - 0x3c], 0x422c0000
mov dword [ebp - 0x38], 0x42220000
mov dword [ebp - 0x34], 0x42140000
mov dword [ebp - 0x30], 0x41e40000
mov dword [ebp - 0x2c], 0x41c80000
jmp 0x49dcc9
mov dword [esi + 0x88], 0xe
mov dword [ebp - 0xa8], 0x453b8000
mov dword [ebp - 0xa4], 0x457a0000
mov dword [ebp - 0xa0], 0x458ca000
mov dword [ebp - 0x9c], 0x45947000
mov dword [ebp - 0x98], 0x45abe000
mov dword [ebp - 0x94], 0x45b3b000
mov dword [ebp - 0x90], 0x45c35000
mov dword [ebp - 0x8c], 0x45d2f000
mov dword [ebp - 0x88], 0x45dac000
mov dword [ebp - 0x84], 0x45ea6000
mov dword [ebp - 0x80], 0x4600e800
mov dword [ebp - 0x7c], 0x4608b800
mov dword [ebp - 0x78], 0x46202800
mov dword [ebp - 0x58], 0x41300000
mov dword [ebp - 0x54], 0x41800000
mov dword [ebp - 0x50], 0x41900000
mov dword [ebp - 0x4c], 0x419c0000
mov dword [ebp - 0x48], 0x41d80000
mov dword [ebp - 0x44], 0x41e80000
mov dword [ebp - 0x40], 0x42000000
mov dword [ebp - 0x3c], 0x42040000
mov eax, 0x42260000
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x422e0000
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x422a0000
mov dword [ebp - 0x28], 0x41c00000
jmp 0x49dcc9
mov dword [esi + 0x88], 0xd
mov dword [ebp - 0xa8], 0x453b8000
mov dword [ebp - 0xa4], 0x457a0000
mov dword [ebp - 0xa0], 0x458ca000
mov dword [ebp - 0x9c], 0x459c4000
mov dword [ebp - 0x98], 0x45abe000
mov dword [ebp - 0x94], 0x45bb8000
mov dword [ebp - 0x90], 0x45cb2000
mov dword [ebp - 0x8c], 0x45dac000
mov dword [ebp - 0x88], 0x45ea6000
mov dword [ebp - 0x84], 0x45fa0000
mov dword [ebp - 0x80], 0x4604d000
mov dword [ebp - 0x7c], 0x46202800
mov dword [ebp - 0x58], 0x41200000
mov dword [ebp - 0x54], 0x41840000
mov dword [ebp - 0x50], 0x41900000
mov dword [ebp - 0x4c], 0x41b00000
mov dword [ebp - 0x48], 0x41cc0000
mov dword [ebp - 0x44], 0x41fc0000
mov dword [ebp - 0x40], 0x42140000
mov dword [ebp - 0x3c], 0x422c0000
mov dword [ebp - 0x38], 0x42380000
mov dword [ebp - 0x34], 0x422a0000
mov dword [ebp - 0x30], 0x421a0000
mov dword [ebp - 0x2c], 0x41b80000
xor edx, edx
mov eax, dword [esi + 0x88]
mov dword [esi + 0x170], edx
cmp eax, 1
mov dword [esi + 0x16c], 0xbf800000
jle 0x49dda2
xor edi, edi
test eax, eax
jle 0x49de21
lea ebx, [esi + 0x174]
xor ecx, ecx
mov eax, dword [ebp + ecx - 0xac]
test ecx, ecx
mov dword [ebx - 0xe8], eax
mov eax, dword [ebp + ecx - 0x5c]
mov dword [ebx - 0xac], eax
jne 0x49dd1b
mov dword [ebx], edx
jmp 0x49dd2f
fld dword [ebx - 0xac]
fdiv dword [ebx - 0xe8]
fmul dword [0x4d76c8]
fstp dword [ebx]
fld dword [ebx]
fcomp dword [esi + 0x16c]
fnstsw ax
test ah, 0x41
jne 0x49dd4c
mov eax, dword [ebx]
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], edi
test ecx, ecx
jle 0x49dd85
fld dword [ebx - 0xac]
fsub dword [ebx - 0xb0]
fld dword [ebx - 0xe8]
fsub dword [ebx - 0xec]
fdivp st(1)
fstp dword [ebx - 0x70]
fld dword [ebx]
fsub dword [ebx - 4]
fld dword [ebx - 0xe8]
fsub dword [ebx - 0xec]
fdivp st(1)
fstp dword [ebx + 0x3c]
jmp 0x49dd8b
mov dword [ebx - 0x70], edx
mov dword [ebx + 0x3c], edx
add ebx, 4
add ecx, 4
inc edi
mov eax, dword [esi + 0x88]
cmp eax, edi
jg 0x49dcfc
jmp 0x49de21
push edi
push str.Power_Curve_invalid_in__s_n
call fcn.004bd200
add esp, 8
lea eax, [ebp - 0x1cc]
mov ecx, dword [0x4e2fdc]
nop
push eax
mov ebx, dword [ecx]
call dword [ebx + 0x50]
mov eax, dword [0x523400]
test eax, eax
jne 0x49dde3
push 0x4df83c
push str.errlog.txt
call fcn.004bd1c0
add esp, 8
mov dword [0x523400], eax
lea eax, [ebp - 0x1cc]
mov ecx, dword [0x523400]
push eax
push ecx
call fcn.004bd270
add esp, 8
mov ecx, dword [0x523400]
push ecx
call fcn.004bfe90
add esp, 4
mov ecx, dword [0x523400]
push ecx
call fcn.004bd0c0
add esp, 4
push 0xffffffffffffffff
call fcn.004bece0
add esp, 4
xor edi, edi
mov eax, dword [esi + 0x84]
cmp eax, edi
jle 0x49de74
lea edx, [esi + 0x50]
lea ecx, [esi + 0x20]
mov eax, dword [esi + 0x170]
add edx, 4
add ecx, 8
inc edi
fld dword [esi + eax*4 + 0x8c]
fsub dword [0x4d76cc]
fstp dword [ecx - 8]
mov eax, dword [esi + 0x170]
fld dword [esi + eax*4 + 0x8c]
fadd dword [0x4d76cc]
fst dword [ecx - 4]
fsub dword [ecx - 8]
fstp dword [edx - 4]
cmp dword [esi + 0x84], edi
jg 0x49de33
mov dword [esi + 0x78], 0x447a0000
xor ebx, ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], ebx
mov dword [esi + 0x168], ebx
mov dword [esi + 0x150], 1
call fcn.004bd9f0
push 0x10
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fmul dword [0x4dfffc]
fmul dword [esi + 0x50]
fadd dword [esi + 0x20]
fstp dword [esi + 0x154]
call fcn.004bd170
mov dword [ebp - 0x10], eax
add esp, 4
mov edi, eax
mov dword [ebp - 4], ebx
mov eax, 0
test edi, edi
je 0x49df03
mov eax, dword [esi]
fld dword [eax + 0x8cc]
fmul dword [0x4d76d4]
mov eax, edi
mov dword [edi], ebx
fstp dword [edi + 4]
mov dword [edi + 8], 0x7f7fffff
mov dword [edi + 0xc], 0xff7fffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov dword [esi + 4], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc