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

Disassembly:
push 0xffffffffffffffff
push 0x4f226b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
push 0
push 0
sub esp, 0x10
mov ebp, ecx
mov eax, esp
mov dword [esp + 0x28], esp
push 0x17
push eax
mov ecx, 0x513088
call fcn.0047dbf0
sub esp, 0x10
mov dword [esp + 0x98], 0
mov ecx, esp
mov dword [esp + 0x3c], esp
push 7
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
or edi, 0xffffffff
mov ecx, 0x512ab0
mov dword [esp + 0x98], edi
call fcn.00461540
mov eax, dword [ebp + 0xe8]
lea esi, [ebp + 0xe4]
lea edx, [esp + 0x14]
push eax
push edx
mov ecx, esi
call fcn.004beb00
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004b6c90
mov eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x48]
lea ecx, [ebp + 0x44]
push eax
push edx
call fcn.004b6950
call fcn.00469a70
test al, al
je 0x4af6d3
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4af6d3
mov edx, dword [ebp + 0xd4]
mov ecx, dword [edx + 0x201c]
test ecx, ecx
je 0x4af6d3
push str.Read_DTC
call fcn.0046b1a0
push 0x420
call fcn.004dbc04
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x70], 1
je 0x4af6f9
mov ecx, eax
call fcn.004d62f0
jmp 0x4af6fb
xor eax, eax
mov dword [ebp + 0xd0], eax
mov al, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x74], edi
mov byte [esp + 0x1c], al
call fcn.004019e0
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x28]
mov dword [esp + 0x70], 2
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x44]
push eax
push ecx
mov ecx, dword [ebp + 0xcc]
call fcn.004aeed0
mov edx, dword [0x4f4164]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
mov byte [esp + 0x7c], 3
call fcn.004017e0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 2
call fcn.004019e0
lea eax, [esp + 0x58]
push eax
call fcn.00469850
add esp, 4
mov eax, dword [eax + 4]
mov byte [esp + 0x70], 4
test eax, eax
mov edi, 0x4f4178
je 0x4af783
mov edi, eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00469650
push 0x509790
lea edx, [esp + 0x40]
push eax
push edx
mov byte [esp + 0x80], 5
call fcn.00404bb0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
mov bl, 6
push eax
push edx
mov byte [esp + 0x8c], bl
call fcn.00415cf0
add esp, 0x1c
mov eax, dword [eax + 4]
mov byte [esp + 0x70], 7
test eax, eax
jne 0x4af7d2
mov eax, 0x4f4178
mov ecx, dword [ebp + 0xd0]
push edi
push eax
call fcn.004aea20
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], bl
call fcn.004019e0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], 5
call fcn.004019e0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 4
call fcn.004019e0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 2
call fcn.004019e0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x4af971
mov cl, byte [ebp + 0xe0]
inc cl
mov byte [ebp + 0xe0], cl
mov ebx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x38]
cmp ebx, ebx
mov edi, ebx
je 0x4af85c
push edi
mov ecx, esi
call fcn.004b7e40
add edi, 0x4c
add esi, 0x4c
cmp edi, ebx
jne 0x4af84a
mov ebx, dword [ebp + 0x3c]
mov edi, esi
cmp esi, ebx
je 0x4af875
push 0
mov ecx, edi
call fcn.004b80c0
add edi, 0x4c
cmp edi, ebx
jne 0x4af865
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x3c], esi
lea edi, [ebp + 0x54]
mov ecx, 0x15
mov esi, eax
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.004b0680
test ax, ax
je 0x4af8c6
cmp ax, 0xfffe
je 0x4af8e5
cmp ax, 0xfffd
je 0x4af91a
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
movsx edx, ax
push esi
push ecx
push edx
mov ecx, ebp
call fcn.004b1f50
test eax, eax
je 0x4af96c
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x10]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
add eax, 0x54
mov edx, dword [ecx + 8]
mov dword [esp + 0x10], eax
cmp eax, edx
jne 0x4af830
jmp 0x4af971
mov edx, dword [esp + 0x7c]
mov dword [edx], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4af9c0
mov al, byte [ecx - 1]
test al, al
je 0x4af9b6
cmp al, 0xff
je 0x4af9b6
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x4afa13
push 0
push 1
sub esp, 0x10
mov ecx, 0x513088
mov eax, esp
mov dword [esp + 0x90], esp
push 0xf
push eax
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x98], 8
mov ecx, esp
mov dword [esp + 0xa4], esp
push 0x1b
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x98], 2
call fcn.00461540
jmp 0x4af8ef
cmp dword [esi], 0
jne 0x4af99a
mov eax, dword [ebp + 0xdc]
test eax, eax
je 0x4af9c4
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4af99a
mov ebp, dword [ebp + 0x3c]
sub ebp, eax
mov eax, 0x6bca1af3
imul ebp
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x4af9ea
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4af9c0
mov al, byte [ecx - 1]
test al, al
je 0x4af9b6
cmp al, 0xff
je 0x4af9b6
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x4afa13
dec ecx
push ecx
call fcn.004db420
add esp, 4
xor eax, eax
jmp 0x4afa13
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4af9d7
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 4]
mov ebp, dword [ebp + 0xd0]
test ebp, ebp
je 0x4af9ea
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4afa0e
mov al, byte [ecx - 1]
test al, al
je 0x4afa04
cmp al, 0xff
je 0x4afa04
dec al
mov byte [ecx - 1], al
jmp 0x4afa0e
dec ecx
push ecx
call fcn.004db420
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0xc