Function at 0x410d10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x491673
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae680]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
xor esi, esi
mov dword [esp + 0x98], esi
call fcn.0045ded3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x410d64
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x98], 1
call fcn.0045ded3
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x410d96
push 0x80004005
call fcn.00407700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0xac]
mov byte [esp + 0x98], 2
cmp dword [edi + 0xc], esi
je 0x410dbf
call fcn.004163a0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0xa4]
test esi, esi
jne 0x410dea
mov ecx, dword [esp + 0xa8]
push ecx
push 0
push str.nMotorcmdtotalNums
push str.nMotorcmdtotalNums
jmp 0x410e03
cmp esi, 1
jne 0x410e09
mov edx, dword [esp + 0xa8]
push edx
push 0
push str.nTestMotorcmdtotalNums
push str.nTestMotorcmdtotalNums
call edi
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jle 0x411172
jmp 0x410e2f
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0xa4]
test esi, esi
jne 0x410e40
push eax
push str.MotoCmdInfo_d
lea eax, [esp + 0x24]
push eax
jmp 0x410e50
cmp esi, 1
jne 0x410e5c
push eax
push str.TestMotoCmdInfo_d
lea ecx, [esp + 0x24]
push ecx
call fcn.00407320
mov ebx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.004162d0
mov byte [esp + 0x98], 3
mov edx, dword [esp + 0xa8]
push edx
push 0
push str.nMotorNums
push ebx
call edi
mov byte [esp + 0x2c], al
mov eax, dword [esp + 0xa8]
push eax
push 0
push str.motorIndex
push ebx
call edi
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0xa8]
mov byte [esp + 0x2d], al
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x410ed3
push 0x104
lea ecx, [esp + 0x8c]
call fcn.004075c0
mov edx, dword [esp + 0x88]
push esi
push 0x104
push edx
push 0x49b083
push str.strLedIndx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor esi, esi
jmp 0x410ef4
mov ebx, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x1c]
push str.MotonTabLen__d_
push ecx
call fcn.00407320
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
add esp, 0xc
push edx
push 0
push eax
push ebx
call edi
push esi
lea ecx, [esp + 0x1c]
push str.MotonnMaxSpeed__d_
push ecx
mov dword [esp + esi*4 + 0x40], eax
call fcn.00407320
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
add esp, 0xc
push edx
push 0
push eax
push ebx
call edi
push esi
lea ecx, [esp + 0x1c]
push str.MotonnnMoveLenth__d_
push ecx
mov dword [esp + esi*4 + 0x54], eax
call fcn.00407320
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
add esp, 0xc
push edx
push 0
push eax
push ebx
call edi
lea ecx, [esp + 0x18]
push str.MotonnFrequency
push ecx
mov dword [esp + esi*4 + 0x64], eax
call fcn.00407320
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x20]
add esp, 8
push edx
push 0
push eax
push ebx
call edi
push esi
lea ecx, [esp + 0x1c]
push str.MotonnnstrDir__d_
push ecx
mov dword [esp + 0x7c], eax
call fcn.00407320
mov eax, dword [esp + esi*4 + 0x80]
mov edx, dword [esp + 0xb4]
lea ebx, [esp + esi*4 + 0x80]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
add esp, 0xc
or eax, ecx
mov dword [esp + 0x28], edx
jge 0x410fe6
push 0x104
mov ecx, ebx
call fcn.004075c0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
push ecx
push 0x104
push eax
mov eax, dword [esp + 0x28]
push 0x49b083
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 0x2714]
mov ecx, dword [esp + esi*4 + 0x34]
sar ecx, 8
mov byte [edx + ebp + 4], cl
movzx edx, byte [esp + esi*4 + 0x34]
mov ecx, 1
add dword [ebp + 0x2714], ecx
mov eax, dword [ebp + 0x2714]
mov byte [eax + ebp + 4], dl
add dword [ebp + 0x2714], ecx
mov eax, dword [ebp + 0x2714]
mov edx, dword [esp + esi*4 + 0x48]
sar edx, 8
mov byte [eax + ebp + 4], dl
add dword [ebp + 0x2714], ecx
mov eax, dword [ebp + 0x2714]
movzx edx, byte [esp + esi*4 + 0x48]
mov byte [eax + ebp + 4], dl
add dword [ebp + 0x2714], ecx
mov eax, dword [ebp + 0x2714]
mov edx, dword [esp + esi*4 + 0x5c]
sar edx, 8
mov byte [eax + ebp + 4], dl
add dword [ebp + 0x2714], ecx
movzx edx, byte [esp + esi*4 + 0x5c]
mov eax, dword [ebp + 0x2714]
mov byte [eax + ebp + 4], dl
mov ebx, dword [ebx]
add dword [ebp + 0x2714], ecx
push str.Orignal
push ebx
call fcn.00476a04
add esp, 8
test eax, eax
sete al
test al, al
je 0x4110b7
mov eax, dword [ebp + 0x2714]
mov byte [eax + ebp + 4], 1
jmp 0x4110c2
mov ecx, dword [ebp + 0x2714]
mov byte [ecx + ebp + 4], 0
inc dword [ebp + 0x2714]
inc esi
cmp esi, 5
jl 0x410ef0
cmp byte [esp + 0x2c], 0
jbe 0x41110f
mov esi, dword [esp + 0xac]
mov edx, dword [esi + 8]
push edx
call fcn.00415fb0
mov esi, eax
lea ebx, [esi + 8]
lea eax, [esp + 0x2c]
call fcn.00416070
mov ecx, dword [esp + 0xac]
mov eax, dword [ecx + 8]
test eax, eax
je 0x411109
mov dword [eax], esi
jmp 0x41110c
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41113a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00407860
push 5
push 4
lea ecx, [esp + 0x80]
push ecx
call fcn.00476a79
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
jl 0x410e20
cmp dword [esp + 0x20], 0
jg 0x4111f3
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41119a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x98], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x411276
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41121b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411271
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x10