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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4f2393
push eax
mov eax, 0x5e58
mov dword fs:[0], esp
call fcn.004dcdf0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00469a70
xor esi, esi
test al, al
je 0x4afa83
cmp dword [esp + 0x5e80], esi
je 0x4afa83
mov eax, dword [ebp + 0xd4]
mov ecx, dword [eax + 0x201c]
cmp ecx, esi
je 0x4afa83
push str.Clear_DTC
call fcn.0046b1a0
push esi
push esi
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x17
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
sub esp, 0x10
mov ecx, 0x513088
mov edx, esp
mov dword [esp + 0x74], esp
push 7
push edx
mov dword [esp + 0x5ea0], esi
call fcn.0047dbf0
mov ecx, 0x512ab0
mov dword [esp + 0x5e98], 0xffffffff
call fcn.00461540
mov al, byte [esp + 0x1b]
mov dword [esp + 0x74], esi
mov byte [esp + 0x70], al
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0x5e78]
mov dword [esp + 0x5e70], 1
mov ebx, dword [eax + 4]
cmp ebx, esi
mov dword [esp + 0x50], ebx
je 0x4b0655
mov edi, dword [eax + 8]
mov eax, 0x38e38e39
mov ecx, edi
sub ecx, ebx
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x48], edx
je 0x4b0655
cmp ebx, edi
je 0x4b02e0
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0xd4]
push esi
push edx
call fcn.004890d0
mov ecx, dword [ebx + 4]
or eax, 0xffffffff
cmp ecx, eax
je 0x4b0655
cmp dword [ebx + 0x10], eax
je 0x4afb9b
push esi
push 1
sub esp, 0x10
mov ecx, 0x513088
mov eax, esp
mov dword [esp + 0x28], esp
push 0x17
push eax
call fcn.0047dbf0
mov edx, dword [ebx + 0x10]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
push ecx
mov ecx, dword [ebp + 0xcc]
mov byte [esp + 0x5ea0], 2
call fcn.004aeed0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 1
call fcn.00461540
mov eax, dword [ebx + 0xc]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4afbaa
jmp dword [eax*4 + 0x4b0668]
lea ecx, [esp + 0x3b48]
call fcn.00495ed0
mov eax, dword [ebp + 0xcc]
mov ecx, dword [ebx + 4]
push eax
push ecx
lea ecx, [esp + 0x3b50]
mov byte [esp + 0x5e78], 3
call fcn.00496690
lea ecx, [esp + 0x110]
mov dword [esp + 0x14], eax
call fcn.0046ec80
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, esi
mov byte [esp + 0x5e70], 4
mov dword [esp + 0x68], esi
jle 0x4afc47
push edi
lea ecx, [esp + 0x3b4c]
call fcn.004967d0
mov edx, dword [ebp]
lea eax, [esp + 0x110]
lea ecx, [esp + 0x68]
push eax
push ecx
lea eax, [esp + 0x4a0]
push esi
lea ecx, [esp + 0x3b54]
push eax
push ecx
mov ecx, ebp
call dword [edx + 8]
cmp eax, 1
jne 0x4b035b
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4afc02
lea ecx, [esp + 0x110]
mov byte [esp + 0x5e70], 3
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x3b48]
jmp 0x4b0272
mov edx, dword [esp + 0x5e7c]
mov ecx, ebp
push edx
call fcn.004af420
cmp eax, esi
je 0x4b043d
lea ecx, [esp + 0x1828]
call fcn.00495ed0
mov eax, dword [ebp + 0xcc]
mov ecx, dword [ebx + 4]
push eax
push ecx
lea ecx, [esp + 0x1830]
mov byte [esp + 0x5e78], 6
call fcn.00496690
lea ecx, [esp + 0xc8]
mov dword [esp + 0x14], eax
call fcn.0046ec80
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, esi
mov byte [esp + 0x5e70], 7
mov dword [esp + 0x6c], esi
jle 0x4afd1c
push edi
lea ecx, [esp + 0x182c]
call fcn.004967d0
mov edx, dword [ebp]
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x6c]
push eax
push ecx
lea eax, [esp + 0x1a0]
push esi
lea ecx, [esp + 0x1834]
push eax
push ecx
mov ecx, ebp
call dword [edx + 8]
cmp eax, 1
jne 0x4b03cc
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4afcd7
lea ecx, [esp + 0xc8]
mov byte [esp + 0x5e70], 6
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x1828]
jmp 0x4b0272
lea ecx, [esp + 0x29b8]
call fcn.00495ed0
mov edx, dword [ebp + 0xcc]
mov eax, dword [ebx + 4]
push edx
push eax
lea ecx, [esp + 0x29c0]
mov byte [esp + 0x5e78], 0xa
call fcn.00496690
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], eax
call fcn.0046ec80
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, esi
mov byte [esp + 0x5e70], 0xb
mov dword [esp + 0x64], esi
jle 0x4afdda
push edi
lea ecx, [esp + 0x29bc]
call fcn.004967d0
mov edx, dword [ebp]
lea eax, [esp + 0x80]
lea ecx, [esp + 0x64]
push eax
push ecx
lea eax, [esp + 0x2a0]
push esi
lea ecx, [esp + 0x29c4]
push eax
push ecx
mov ecx, ebp
call dword [edx + 8]
cmp eax, 1
jne 0x4b046e
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4afd95
mov ecx, dword [ebp + 0xd4]
call fcn.00488280
lea ecx, [esp + 0x80]
mov byte [esp + 0x5e70], 0xa
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x29b8]
jmp 0x4b0272
mov edx, dword [esp + 0x5e7c]
mov ecx, ebp
push edx
call fcn.004af420
cmp eax, esi
je 0x4b05b2
lea ecx, [esp + 0x698]
call fcn.00495ed0
mov eax, dword [ebp + 0xcc]
mov ecx, dword [ebx + 4]
push eax
push ecx
lea ecx, [esp + 0x6a0]
mov byte [esp + 0x5e78], 0xd
call fcn.00496690
mov edi, eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x10], edi
call fcn.0046ec80
xor eax, eax
cmp edi, esi
mov byte [esp + 0x5e70], 0xe
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jle 0x4b0190
push eax
lea ecx, [esp + 0x69c]
call fcn.004967d0
mov dl, byte [esp + 0x1b]
mov dword [esp + 0x38], esi
mov byte [esp + 0x34], dl
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x34]
lea ecx, [esp + 0x698]
push eax
mov byte [esp + 0x5e74], 0xf
call fcn.00496c40
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], esi
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x4b015a
mov ecx, dword [ebp + 0x3c]
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
mov eax, dword [esp + 0x14]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp eax, edx
jae 0x4b015a
mov dl, byte [esp + 0x1b]
mov dword [esp + 0x28], esi
mov byte [esp + 0x24], dl
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp eax, esi
mov byte [esp + 0x5e70], 0x10
je 0x4aff18
mov edx, ecx
sub edx, eax
jne 0x4aff58
xor edx, edx
cmp eax, ecx
mov edi, ecx
je 0x4aff32
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
cmp eax, edi
jne 0x4aff20
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x4aff47
mov edx, dword [esp + 0x28]
xor ecx, ecx
add edx, ecx
mov dword [esp + 0x2c], edx
jmp 0x4affd9
mov edx, dword [esp + 0x28]
sub ecx, eax
add edx, ecx
mov dword [esp + 0x2c], edx
jmp 0x4affd9
cmp edx, esi
push esi
ja 0x4aff90
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00483a60
mov ecx, dword [esp + 0x38]
cmp ecx, esi
jne 0x4aff7e
mov ecx, dword [esp + 0x28]
xor eax, eax
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x4affd9
mov eax, dword [esp + 0x3c]
sub eax, ecx
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x4affd9
call fcn.004db420
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp ecx, esi
jne 0x4affa4
xor eax, eax
jmp 0x4affaa
mov eax, dword [esp + 0x3c]
sub eax, ecx
cmp eax, esi
jge 0x4affb0
xor eax, eax
push eax
call fcn.004dbc04
mov edx, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push edx
push eax
call fcn.00483a60
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x4f4164]
stosb byte es:[edi], al
mov eax, dword [ebp + 0x38]
mov edi, dword [esp + 0x44]
add eax, edi
push edx
push esi
push eax
mov cl, byte [eax]
mov dword [esp + 0x64], esi
mov byte [esp + 0x60], cl
lea ecx, [esp + 0x60]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
call fcn.004017e0
mov eax, dword [ebp + 0x38]
mov ecx, edi
mov byte [esp + 0x5e70], 0x11
mov ebx, dword [eax + edi + 8]
mov eax, dword [eax + ecx + 4]
shr ebx, 1
cmp eax, esi
mov byte [esp + 0x4c], bl
jne 0x4b0045
mov eax, 0x4f4178
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x134]
and esi, 0xff
push esi
push eax
push edx
call fcn.004caa40
mov eax, dword [ebp + 0x138]
add esp, 0xc
cmp eax, 1
jne 0x4b008b
cmp bl, 1
jb 0x4b00ae
mov ecx, dword [esp + 0x2c]
lea eax, [esp + esi + 0x133]
push eax
push 1
push ecx
lea ecx, [esp + 0x30]
call fcn.004085a0
jmp 0x4b00ae
xor edi, edi
test esi, esi
jle 0x4b00ae
mov eax, dword [esp + 0x2c]
lea edx, [esp + edi + 0x134]
push edx
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.004085a0
inc edi
cmp edi, esi
jl 0x4b0091
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x69c]
call fcn.00496a70
mov edx, dword [ebp]
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x3a0]
push 1
lea ecx, [esp + 0x6a4]
push eax
push ecx
mov ecx, ebp
call dword [edx + 8]
cmp eax, 1
jne 0x4b04df
mov eax, dword [esp + 0x58]
xor esi, esi
cmp eax, esi
je 0x4b0116
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4b010d
cmp al, 0xff
je 0x4b010d
dec al
mov byte [ecx], al
jmp 0x4b0116
push ecx
call fcn.004db420
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], esi
push edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.004db420
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x54]
add esp, 4
inc ecx
add eax, 0x4c
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], eax
xor esi, esi
jmp 0x4afebd
mov eax, dword [esp + 0x38]
mov byte [esp + 0x5e70], 0xe
push eax
call fcn.004db420
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x20], eax
jl 0x4afe7b
lea ecx, [esp + 0xa4]
mov byte [esp + 0x5e70], 0xd
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x698]
jmp 0x4b0272
lea ecx, [esp + 0x4cd8]
call fcn.00495ed0
mov ecx, dword [ebp + 0xcc]
mov edx, dword [ebx + 4]
push ecx
push edx
lea ecx, [esp + 0x4ce0]
mov byte [esp + 0x5e78], 0x14
call fcn.00496690
lea ecx, [esp + 0xec]
mov dword [esp + 0x20], eax
call fcn.0046ec80
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, esi
mov byte [esp + 0x5e70], 0x15
mov dword [esp + 0x48], esi
jle 0x4b024f
push edi
lea ecx, [esp + 0x4cdc]
call fcn.004967d0
mov eax, dword [ebp]
lea ecx, [esp + 0xec]
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x5a0]
push 1
lea edx, [esp + 0x4ce4]
push ecx
push edx
mov ecx, ebp
call dword [eax + 8]
cmp eax, 1
jne 0x4b05e4
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x4b0209
lea ecx, [esp + 0xec]
mov byte [esp + 0x5e70], 0x14
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x4cd8]
call fcn.00495fe0
cmp dword [ebx + 0x14], 0xffffffff
je 0x4b02c9
push esi
push 1
sub esp, 0x10
mov ecx, 0x513088
mov eax, esp
mov dword [esp + 0x28], esp
push 0x17
push eax
call fcn.0047dbf0
mov edx, dword [ebx + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
push ecx
mov ecx, dword [ebp + 0xcc]
mov byte [esp + 0x5ea0], 0x17
call fcn.004aeed0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 1
call fcn.00461540
mov eax, dword [esp + 0x5e78]
add ebx, 0x24
mov dword [esp + 0x50], ebx
cmp ebx, dword [eax + 8]
jne 0x4afb2c
cmp dword [esp + 0x5e80], esi
je 0x4b0332
push esi
push 1
sub esp, 0x10
mov ecx, 0x513088
mov edx, esp
mov dword [esp + 0x60], esp
push 0x17
push edx
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x5e98], 0x18
mov eax, esp
mov dword [esp + 0x38], esp
push 0x1f
push eax
mov ecx, 0x513088
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 1
call fcn.00461540
push esi
call fcn.004db420
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x5e68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5e64
ret 0xc
push esi
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push 1
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
sub esp, 0x10
mov ecx, 0x513088
mov edx, esp
mov dword [esp + 0x44], esp
push 0x1e
push edx
mov byte [esp + 0x5ea0], 5
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 4
call fcn.00461540
lea ecx, [esp + 0x110]
mov byte [esp + 0x5e70], 3
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x3b48]
jmp 0x4b0650
push esi
push 1
sub esp, 0x10
mov ecx, 0x513088
mov eax, esp
mov dword [esp + 0x28], esp
push 1
push eax
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x5e98], 8
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x1e
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 7
call fcn.00461540
lea ecx, [esp + 0xc8]
mov byte [esp + 0x5e70], 6
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x1828]
jmp 0x4b0650
push esi
push 1
sub esp, 0x10
mov ecx, 0x513088
mov edx, esp
mov dword [esp + 0x28], esp
push 0x17
push edx
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x5e98], 9
mov eax, esp
mov dword [esp + 0x44], esp
push 3
jmp 0x4b0315
push esi
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push 1
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
sub esp, 0x10
mov ecx, 0x513088
mov edx, esp
mov dword [esp + 0x44], esp
push 0x1e
push edx
mov byte [esp + 0x5ea0], 0xc
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 0xb
call fcn.00461540
lea ecx, [esp + 0x80]
mov byte [esp + 0x5e70], 0xa
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x29b8]
jmp 0x4b0650
xor esi, esi
mov ecx, 0x513088
push esi
push 1
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x28], esp
push 1
push eax
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x5e98], 0x12
mov ecx, esp
mov dword [esp + 0x74], esp
push 0x1e
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 0x11
call fcn.00461540
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x4b054f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4b0546
cmp al, 0xff
je 0x4b0546
dec al
mov byte [ecx], al
jmp 0x4b054f
push ecx
call fcn.004db420
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], esi
push edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
call fcn.004db420
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], esi
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.004db420
add esp, 8
lea ecx, [esp + 0xa4]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x5e70], 0xd
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x698]
jmp 0x4b0650
push esi
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x17
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x5e98], 0x13
mov edx, esp
mov dword [esp + 0x44], esp
push 3
push edx
jmp 0x4b0316
push esi
push 1
sub esp, 0x10
mov ecx, 0x513088
mov eax, esp
mov dword [esp + 0x28], esp
push 1
push eax
call fcn.0047dbf0
sub esp, 0x10
mov byte [esp + 0x5e98], 0x16
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x1e
push ecx
mov ecx, 0x513088
call fcn.0047dbf0
mov ecx, 0x512ab0
mov byte [esp + 0x5e98], 0x15
call fcn.00461540
lea ecx, [esp + 0xec]
mov byte [esp + 0x5e70], 0x14
call fcn.0046ed80
mov byte [esp + 0x5e70], 1
lea ecx, [esp + 0x4cd8]
call fcn.00495fe0
push esi
call fcn.004db420
add esp, 4
xor eax, eax
jmp 0x4b0340