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

Disassembly:
push 0xffffffffffffffff
push 0x48ab50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [ebp + 0xc], esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x2c], esi
mov byte [0x49c274], 3
call fcn.00410af0
mov al, byte [ebp + 4]
mov dword [esp + 0x530], 1
test al, al
jne 0x40bbb2
mov edi, dword [ebp + 0x14]
mov ecx, 0x19
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x1c], eax
call fcn.0041a020
mov ebx, dword [esp + 0x53c]
test al, al
je 0x40bd0c
mov ecx, dword [ebp + 0x10]
cmp ecx, esi
je 0x40bd0c
call fcn.0044b050
test eax, eax
je 0x40bd0c
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.004024d0
mov edi, str.CCommWithEcu::BoschEnter_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x18]
push edi
mov dword [esp + 0x30], edi
call fcn.00402900
test al, al
je 0x40bc3c
mov ecx, edi
mov edi, dword [esp + 0x18]
mov edx, ecx
mov esi, str.CCommWithEcu::BoschEnter_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004028e0
xor esi, esi
mov edx, ebx
lea ecx, [esp + 0x74]
push 0x10
and edx, 0xff
push ecx
push edx
mov byte [esp + 0x53c], 2
call fcn.0047e9d0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040f8b0
mov edi, 0x49c5c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49c5c0
lea ecx, [esp + 0x1c]
call fcn.0040f8b0
movsx ecx, word [esp + 0x540]
lea eax, [esp + 0x74]
push 0xa
push eax
push ecx
call fcn.0047e9d0
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040f8b0
mov edi, 0x49c308
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49c308
lea ecx, [esp + 0x1c]
call fcn.0040f8b0
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x40bcef
mov eax, 0x490148
mov ecx, dword [ebp + 0x10]
push esi
push eax
call fcn.00418a80
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x534], 1
call fcn.004024d0
mov edx, dword [ebp + 0x1c]
mov byte [edx], 2
mov eax, dword [ebp + 0x1c]
mov byte [eax + 1], 9
mov ecx, dword [ebp + 0x1c]
mov byte [ecx + 2], bl
movsx ecx, word [esp + 0x540]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
mov edx, dword [ebp + 0x1c]
sar eax, 8
and ecx, 0x800000ff
mov byte [edx + 3], al
jns 0x40bd4b
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [ebp + 0x1c]
mov byte [eax + 4], cl
mov al, byte [ebp + 4]
test al, al
je 0x40bde9
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x20]
add ebx, 5
lea edx, [esp + 0x6c]
mov dword [ebp + 0x1c], ebx
mov eax, dword [ecx + 8]
push edx
push 1
push eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], 2
call fcn.0040fa90
mov esi, dword [esp + 0x538]
mov al, byte [esp + 0x48]
lea ecx, [esp + 0x48]
mov byte [esi], al
call fcn.00429bd0
test eax, eax
jge 0x40bda0
xor eax, eax
shl eax, 4
push eax
call fcn.0047e9c2
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
add esp, 4
mov dword [esi + 4], eax
push eax
push ecx
push edx
mov ecx, esi
call fcn.0040f5e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esp + 0x58]
lea ecx, [esi + 0x10]
push eax
mov byte [esp + 0x534], 3
call fcn.00405830
mov dword [esp + 0x2c], 1
jmp 0x40c428
mov ecx, dword [ebp + 0x14]
push 5
push ecx
mov ecx, dword [ebp]
call fcn.0041dcd0
mov edi, dword [ebp + 0x18]
mov ecx, 0x3fff
xor eax, eax
push 0xffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp]
push edx
call fcn.0041df00
cmp eax, esi
jne 0x40bfc2
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.004024d0
and ebx, 0xff
lea ecx, [esp + 0x9c]
push ebx
push str.BYTE_ucAddressCode__0x_02X_
push ecx
mov byte [esp + 0x53c], 4
call fcn.0047edef
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [0x49014c]
not ecx
dec ecx
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, ebx
ja 0x40be7d
call fcn.0047e19b
cmp ebx, esi
jbe 0x40bec3
mov eax, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x18]
lea ebp, [eax + ebx]
push ebp
call fcn.00402900
test al, al
je 0x40bec3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea esi, [esp + 0x9c]
push ebp
lea edi, [edx + ecx]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004028e0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x54], esp
push 0
mov byte [ebp], cl
mov ecx, ebp
call fcn.004024d0
mov edi, str.CCommWithEcu::BoschEnter__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402900
test al, al
je 0x40bf1b
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.CCommWithEcu::BoschEnter__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004028e0
sub esp, 0x10
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x554], 5
call fcn.004023b0
push 0xfffffffffffffff6
lea ecx, [esp + 0x124]
mov byte [esp + 0x554], 4
call fcn.00417100
mov esi, eax
mov cx, word [esi + 4]
lea edi, [esi + 8]
mov word [esp + 0x78], cx
mov bl, 6
mov dl, byte [edi]
push 0
lea ecx, [esp + 0x80]
mov byte [esp + 0x534], bl
mov byte [esp + 0x80], dl
call fcn.004024d0
mov eax, dword [0x49014c]
lea ecx, [esp + 0x7c]
push eax
push 0
push edi
call fcn.0040f3e0
add esi, 0x18
lea ecx, [esp + 0x8c]
push esi
mov byte [esp + 0x534], 7
call fcn.004023b0
lea ecx, [esp + 0x74]
push 0x495310
push ecx
mov dword [esp + 0x7c], 0x490168
mov byte [esp + 0x538], bl
call fcn.0047ef80
mov esi, dword [ebp + 0x18]
xor ebx, ebx
add esi, 8
movzx di, byte [esi]
inc esi
cmp di, bx
mov dword [esp + 0x24], edi
jne 0x40c03d
mov esi, dword [esp + 0x538]
mov dl, byte [esp + 0x48]
lea ecx, [esp + 0x48]
mov byte [esi], dl
call fcn.00429bd0
cmp eax, ebx
jge 0x40bff4
xor eax, eax
shl eax, 4
push eax
call fcn.0047e9c2
mov ecx, dword [esp + 0x50]
add esp, 4
mov dword [esi + 4], eax
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
mov ecx, esi
call fcn.0040f5e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x58]
lea ecx, [esi + 0x10]
push edx
mov byte [esp + 0x534], 8
call fcn.00405830
mov dword [esp + 0x2c], 1
jmp 0x40c428
lea ecx, [esp + 0x30]
call fcn.00404120
mov al, byte [esp + 0x13]
xor ecx, ecx
mov byte [esp + 0x34], al
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
movsx eax, di
cmp eax, ebx
mov byte [esp + 0x530], 0xa
jle 0x40c0cd
cmp word [esp + 0x24], 1
movzx di, byte [esi]
jne 0x40c07c
test di, di
je 0x40c0b0
inc esi
push edi
push esi
lea ecx, [esp + 0x38]
call fcn.00404550
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x30]
push ecx
push 1
push edx
lea ecx, [esp + 0x40]
call fcn.004010c0
movsx eax, di
mov ecx, dword [esp + 0x3c]
add esi, eax
movsx eax, word [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x40c06b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40c0cd
sub ecx, eax
sar ecx, 2
je 0x40c0cd
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00410e60
call fcn.0041a020
test al, al
je 0x40c363
mov ebp, dword [ebp + 0x10]
test ebp, ebp
je 0x40c363
mov ecx, ebp
call fcn.0044b050
test eax, eax
je 0x40c363
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.004024d0
mov edi, 0x4a643c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00402900
test al, al
je 0x40c14d
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov eax, ecx
mov esi, 0x4a643c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov byte [ecx + ebx], 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x530], 0xb
call fcn.00404120
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x128]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
xor esi, esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x530], 0xc
mov dword [esp + 0x28], esi
call fcn.004110d0
test ax, ax
jle 0x40c325
xor ebx, ebx
push esi
lea ecx, [esp + 0x4c]
call fcn.004110c0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40c30c
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x40c30c
push ebx
push esi
lea ecx, [esp + 0x50]
call fcn.004110c0
mov ecx, eax
call fcn.004010b0
push ecx
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
call fcn.00404130
lea ecx, [esp + 0x28]
call fcn.004042d0
lea ecx, [esp + 0x24]
call fcn.00404490
lea ecx, [esp + 0x24]
mov ebp, eax
xor esi, esi
call fcn.00404470
test ax, ax
jle 0x40c22f
lea edi, [esp + 0x128]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2X
push edi
call fcn.0047edef
add esp, 0xc
lea ecx, [esp + 0x24]
inc esi
add edi, 3
call fcn.00404470
movsx ecx, ax
cmp esi, ecx
jl 0x40c207
mov edi, str.Ans:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402900
test al, al
je 0x40c275
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.Ans:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x49014c]
sub ecx, edx
cmp ecx, esi
ja 0x40c29d
call fcn.0047e19b
test esi, esi
jbe 0x40c2e6
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00402900
test al, al
je 0x40c2e6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x128]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40c2f3
mov eax, 0x490148
mov edx, dword [esp + 0x44]
push 0
push eax
mov ecx, dword [edx + 0x10]
call fcn.00418a80
mov esi, dword [esp + 0x28]
inc ebx
jmp 0x40c198
inc esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], esi
call fcn.004110d0
movsx eax, ax
cmp esi, eax
jl 0x40c196
lea ecx, [esp + 0x24]
mov byte [esp + 0x530], 0xb
call fcn.00404260
mov eax, dword [esp + 0x18]
mov byte [esp + 0x530], 0xa
test eax, eax
je 0x40c363
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40c35a
cmp al, 0xff
je 0x40c35a
dec al
mov byte [ecx], al
jmp 0x40c363
push ecx
call fcn.0047e190
add esp, 4
mov esi, dword [esp + 0x538]
mov cl, byte [esp + 0x48]
mov byte [esi], cl
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jne 0x40c37c
xor eax, eax
jmp 0x40c385
mov eax, dword [esp + 0x50]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x40c38b
xor eax, eax
shl eax, 4
push eax
call fcn.0047e9c2
mov edx, dword [esp + 0x54]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x50]
push edx
push eax
call fcn.0040f5e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x58]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
mov byte [esp + 0x534], 0xd
call fcn.0040f280
mov dl, byte [esp + 0x68]
mov eax, dword [esp + 0x3c]
mov byte [edi + 0x10], dl
mov edi, dword [esp + 0x38]
cmp edi, eax
mov dword [esp + 0x2c], 1
mov byte [esp + 0x530], 9
mov ebx, eax
je 0x40c400
mov ecx, edi
call fcn.00404260
add edi, 4
cmp edi, ebx
jne 0x40c3ee
mov edi, dword [esp + 0x38]
push edi
call fcn.0047e190
xor eax, eax
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x530], 1
call fcn.00404260
lea ecx, [esp + 0x48]
mov byte [esp + 0x530], 0
call fcn.00410bf0
mov ecx, dword [esp + 0x528]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x524
ret 0xc