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

Disassembly:
push 0xffffffffffffffff
push 0x52cb00
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.004ba850
add esp, 0xc
mov esi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push esi
call fcn.004ba260
mov dword [ebx + 8], esi
mov ecx, dword [edi + 4]
xor esi, esi
cmp ecx, esi
jne 0x4b9758
xor eax, eax
jmp 0x4b9aff
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push eax
push esi
call fcn.004b8ca0
test eax, eax
je 0x4b9aff
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edi + 4]
push edx
call fcn.004b9590
test eax, eax
je 0x4b9aff
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x4b979c
xor eax, eax
jmp 0x4b9aff
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.00514b36
mov ebp, eax
add esp, 4
cmp ebp, esi
mov dword [esp + 0x1c], ebp
jne 0x4b97bc
xor eax, eax
jmp 0x4b9aff
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ebp
push ecx
mov ecx, dword [edi + 4]
push edx
call fcn.004b8d10
test eax, eax
je 0x4b9aff
mov al, byte [esp + 0x78]
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00405cc0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], esi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x4b9a84
mov esi, ebp
mov dword [esp + 0x18], esi
mov eax, dword [esi]
cmp eax, 1
jb 0x4b9a50
cmp eax, 6
ja 0x4b9a50
mov edx, dword [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edi + 4]
push edx
call fcn.004e81f0
test eax, eax
je case.default.0x4b9848
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4b99a5
mov eax, dword [esi]
dec eax
cmp eax, 5
ja case.default.0x4b9848
jmp dword [eax*4 + 0x4b9b14]
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.00408220
test al, al
je 0x4b99a5
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 0x4b9996
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.00408220
test al, al
je 0x4b99a5
mov ecx, ebp
mov esi, str.Read_DTC
jmp 0x4b9989
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.00408220
test al, al
je 0x4b99a5
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 0x4b9996
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.00408220
test al, al
je 0x4b99a5
mov ecx, ebp
mov esi, str.Data_Stream
jmp 0x4b9989
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.00408220
test al, al
je 0x4b99a5
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 0x4b9996
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.00408220
test al, al
je 0x4b99a5
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.00408200
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.00405cc0
mov ecx, dword [0x531160]
lea edx, [esp + 0x2c]
push ecx
push edi
push edx
lea ecx, [esp + 0x4c]
call fcn.00407be0
lea eax, [esp + 0x78]
lea ecx, [esp + 0x54]
push eax
mov byte [esp + 0x74], 1
mov dword [esp + 0x54], edi
call fcn.004a40f0
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.004ba290
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.004e66d0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00514120
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.00405cc0
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 0x4b9a84
jmp 0x4b9803
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0xffffffff
call fcn.00405cc0
xor eax, eax
jmp 0x4b9aff
push ebp
call fcn.00514120
mov eax, dword [ebx + 4]
add esp, 4
test eax, eax
je 0x4b9aac
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 0x4b9ad6
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4b9ad2
mov al, byte [ecx - 1]
test al, al
je 0x4b9ac8
cmp al, 0xff
je 0x4b9ac8
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x4b9aff
dec ecx
push ecx
call fcn.00514120
add esp, 4
xor eax, eax
jmp 0x4b9aff
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4b9afa
mov al, byte [ecx - 1]
test al, al
je 0x4b9af0
cmp al, 0xff
je 0x4b9af0
dec al
mov byte [ecx - 1], al
jmp 0x4b9afa
dec ecx
push ecx
call fcn.00514120
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