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

Disassembly:
push 0xffffffffffffffff
push 0x5e1680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov eax, dword [ebx + 8]
push edi
mov edi, ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], edi
push ecx
push eax
push eax
call fcn.00572140
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push esi
call fcn.00571b40
mov dword [ebx + 8], esi
mov ecx, dword [edi + 4]
xor esi, esi
cmp ecx, esi
jne 0x571018
xor eax, eax
jmp 0x5713bf
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push eax
push esi
call fcn.005705d0
test eax, eax
je 0x5713bf
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edi + 4]
push edx
call fcn.00570600
test eax, eax
je 0x5713bf
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x57105c
xor eax, eax
jmp 0x5713bf
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.005bcf2f
mov ebp, eax
add esp, 4
cmp ebp, esi
mov dword [esp + 0x1c], ebp
jne 0x57107c
xor eax, eax
jmp 0x5713bf
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ebp
push ecx
mov ecx, dword [edi + 4]
push edx
call fcn.00570670
test eax, eax
je 0x5713bf
mov al, byte [esp + 0x78]
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00401850
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], esi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x571344
mov esi, ebp
mov dword [esp + 0x18], esi
mov eax, dword [esi]
cmp eax, 1
jb 0x571310
cmp eax, 6
ja 0x571310
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 4]
push edx
call fcn.00597db0
test eax, eax
je case.default.0x571108
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x571265
mov eax, dword [esi]
dec eax
cmp eax, 5
ja case.default.0x571108
jmp dword [eax*4 + 0x5713d4]
mov edi, str.ECU_Information
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.004018c0
test al, al
je 0x571265
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
mov esi, str.ECU_Information
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x571256
mov edi, str.Read_DTC
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.004018c0
test al, al
je 0x571265
mov ecx, ebp
mov esi, str.Read_DTC
jmp 0x571249
mov edi, str.Erase_DTC
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.004018c0
test al, al
je 0x571265
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
mov esi, str.Erase_DTC
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x571256
mov edi, str.Data_Stream
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.004018c0
test al, al
je 0x571265
mov ecx, ebp
mov esi, str.Data_Stream
jmp 0x571249
mov edi, str.Functional_Test
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.004018c0
test al, al
je 0x571265
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
mov esi, str.Functional_Test
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x571256
mov edi, str.Special_Function
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call fcn.004018c0
test al, al
je 0x571265
mov ecx, ebp
mov esi, str.Special_Function
mov edi, dword [esp + 0x30]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.004018a0
mov esi, dword [esp + 0x18]
xor edi, edi
push edi
lea ecx, [esp + 0x44]
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov al, byte [esp + 0x30]
mov byte [esp + 0x44], al
call fcn.00401850
mov ecx, dword [0x5e5150]
lea edx, [esp + 0x2c]
push ecx
push edi
push edx
lea ecx, [esp + 0x4c]
call fcn.004120f0
lea eax, [esp + 0x78]
lea ecx, [esp + 0x54]
push eax
mov byte [esp + 0x74], 1
mov dword [esp + 0x54], edi
call fcn.0055f310
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x3c]
push ecx
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x7c], 2
call fcn.00571b70
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 3
call fcn.005b0ee0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
push 1
mov dword [esp + 0x64], edi
mov byte [esp + 0x74], 0
call fcn.00401850
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add esi, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jae 0x571344
jmp 0x5710c3
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0xffffffff
call fcn.00401850
xor eax, eax
jmp 0x5713bf
push ebp
call fcn.005bc500
mov eax, dword [ebx + 4]
add esp, 4
test eax, eax
je 0x57136c
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x571396
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x571392
mov al, byte [ecx - 1]
test al, al
je 0x571388
cmp al, 0xff
je 0x571388
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x5713bf
dec ecx
push ecx
call fcn.005bc500
add esp, 4
xor eax, eax
jmp 0x5713bf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5713ba
mov al, byte [ecx - 1]
test al, al
je 0x5713b0
cmp al, 0xff
je 0x5713b0
dec al
mov byte [ecx - 1], al
jmp 0x5713ba
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4