Function at 0x405af0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48a6d5
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0041a020
mov ebx, dword [esp + 0xf8]
xor ebp, ebp
test al, al
je 0x405ce9
mov ecx, dword [esi + 0x10]
cmp ecx, ebp
je 0x405ce9
call fcn.0044b050
test eax, eax
je 0x405ce9
mov al, byte [esp + 0x23]
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.004024d0
mov edi, str.CCommWithEcu::SetIoPort_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.CCommWithEcu::SetIoPort_
lea ecx, [esp + 0x2c]
call fcn.00402840
mov edx, ebx
lea ecx, [esp + 0x64]
push 0xa
and edx, 0xff
push ecx
push edx
mov dword [esp + 0xfc], ebp
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 + 0x2c]
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 + 0x2c]
call fcn.0040f8b0
mov ecx, dword [esp + 0xfc]
lea eax, [esp + 0x64]
push 0xa
and ecx, 0xff
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 + 0x2c]
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 + 0x2c]
call fcn.0040f8b0
movsx eax, byte [esp + 0x100]
lea edx, [esp + 0x64]
push 0xa
push edx
push eax
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 + 0x2c]
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 + 0x2c]
call fcn.0040f8b0
mov edx, dword [esp + 0x104]
lea ecx, [esp + 0x64]
push 0xa
and edx, 0xffff
push ecx
push edx
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 + 0x2c]
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 + 0x2c]
call fcn.0040f8b0
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x405cc9
mov eax, 0x490148
mov ecx, dword [esi + 0x10]
push ebp
push eax
call fcn.00418a80
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0xf4], 0xffffffff
call fcn.004024d0
mov al, byte [esi + 4]
mov dword [esi + 0xc], ebp
test al, al
jne 0x405d05
mov edi, dword [esi + 0x14]
mov ecx, 0x19
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x1c]
mov byte [ecx], 1
mov edx, dword [esi + 0x1c]
mov cl, byte [esp + 0xfc]
mov byte [edx + 1], 1
mov eax, dword [esi + 0x1c]
mov byte [eax + 2], cl
mov edx, dword [esi + 0x1c]
mov cl, byte [esp + 0x100]
mov byte [edx + 3], bl
mov eax, dword [esi + 0x1c]
mov byte [eax + 4], cl
mov edx, dword [esi + 0x1c]
mov al, byte [esp + 0x104]
mov byte [edx + 5], al
mov al, byte [esi + 4]
test al, al
je 0x405d8c
mov edi, dword [esi + 0x1c]
add esi, 0x20
add edi, 6
lea ecx, [esp + 0x24]
mov dword [esi - 4], edi
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], 1
call fcn.0040f620
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0xe4
ret 0x10
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
push 6
push eax
call fcn.0041dcd0
mov edi, dword [esi + 0x18]
mov ecx, 0x19
xor eax, eax
push 0xffff
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi]
call fcn.0041df00
mov esi, dword [esi + 0x18]
mov dword [esp + 0x34], eax
add esi, 8
cmp eax, ebp
movsx cx, byte [esi]
mov dword [esp + 0x38], ecx
je 0x405dd0
cmp cx, bp
je 0x405d6e
mov dl, byte [esp + 0x23]
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.004024d0
mov edi, str.W_UINT8_iIoOutputPort_
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0xf0], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.W_UINT8_iIoOutputPort_
lea ecx, [esp + 0x18]
call fcn.00402840
mov ebp, ebx
and ebp, 0xff
cmp ebp, 0x15
jg 0x405f02
je 0x405ee8
cmp ebp, 0x11
ja case.0x405f18.36
xor eax, eax
mov al, byte [ebp + 0x406ad0]
jmp dword [eax*4 + 0x406ab4]
push ebp
lea ecx, [esp + 0x68]
push str.DB15_PIN_d
push ecx
call fcn.0047edef
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x64]
push ecx
push edx
jmp 0x405fa7
mov edi, str.DB15_PIN10_INPUT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN10_INPUT
jmp 0x405fa7
mov edi, str.DB15_PIN0_INPUT_GROUND
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN0_INPUT_GROUND
jmp 0x405fa7
mov edi, str.DB15_PIN2_INPUT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN2_INPUT
jmp 0x405fa7
mov edi, str.DB15_PIN4_OUTPUT_INVALIDATION
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN4_OUTPUT_INVALIDATION
jmp 0x405fa7
mov edi, str.DB15_PIN1_HIGH_ELECTRICITY
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN1_HIGH_ELECTRICITY
jmp 0x405fa7
mov edi, str.DB15_PIN5_HIGH_ELECTRICITY
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN5_HIGH_ELECTRICITY
jmp 0x405fa7
lea eax, [ebp - 0x1e]
cmp eax, 0xe1
ja case.0x405f18.36
xor ecx, ecx
mov cl, byte [eax + 0x406b00]
jmp dword [ecx*4 + 0x406ae4]
mov edi, str.DB15_PIN14_153_6kHz
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN14_153_6kHz
jmp 0x405fa7
mov edi, str.DB15_VPW
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_VPW
jmp 0x405fa7
mov edi, str.DB15_PWM
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PWM
jmp 0x405fa7
mov edi, str.DB15_CAN_PIN6_14
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_CAN_PIN6_14
jmp 0x405fa7
mov edi, str.DB15_CAN_PIN3_11
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_CAN_PIN3_11
jmp 0x405fa7
mov edi, str.DB15_NO_SWITCH_CHANNEL
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_NO_SWITCH_CHANNEL
lea ecx, [esp + 0x18]
call fcn.0040f8b0
mov edi, 0x49c494
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x49c494
lea ecx, [esp + 0x18]
call fcn.0040f8b0
mov edi, str._n__W_UINT8_iIoInputPort_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x406012
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
mov esi, str._n__W_UINT8_iIoInputPort_
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]
lea ecx, [esp + 0x14]
call fcn.004028e0
mov eax, dword [esp + 0xfc]
and eax, 0xff
cmp eax, 0x15
jg 0x4061e8
je 0x4061c5
cmp eax, 0x11
ja case.0x4061fe.36
xor ecx, ecx
mov cl, byte [eax + 0x406c04]
jmp dword [ecx*4 + 0x406be4]
push ebp
lea edx, [esp + 0x68]
push str.DB15_PIN_d
push edx
call fcn.0047edef
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_PIN10_INPUT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN10_INPUT
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_PIN0_INPUT_GROUND
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN0_INPUT_GROUND
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_PIN2_INPUT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN2_INPUT
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_PIN1_HIGH_ELECTRICITY
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN1_HIGH_ELECTRICITY
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_PIN4_INPUT_UNCONNECT
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x49014c]
sub ecx, edx
cmp ecx, esi
ja 0x40612c
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [edx + esi]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edi, [ecx + eax]
mov ecx, esi
mov esi, str.DB15_PIN4_INPUT_UNCONNECT
jmp 0x40641d
mov edi, str.DB15_PIN15_INPUT_WORK_VOLTAGE
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40618b
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.DB15_PIN15_INPUT_WORK_VOLTAGE
lea edi, [eax + edx]
jmp 0x40641d
mov edi, str.DB15_PIN5_HIGH_ELECTRICITY
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN5_HIGH_ELECTRICITY
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
add eax, 0xffffffe2
cmp eax, 0xe1
ja case.0x4061fe.36
xor ecx, ecx
mov cl, byte [eax + 0x406c34]
jmp dword [ecx*4 + 0x406c18]
mov edi, str.DB15_PIN14_153_6kHz
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_PIN14_153_6kHz
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_VPW
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DB15_VPW
lea ecx, [esp + 0x18]
call fcn.0040f8b0
jmp 0x406435
mov edi, str.DB15_PWM
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x49014c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x406271
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [eax + esi]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.DB15_PWM
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x406426
mov edi, str.DB15_CAN_PIN6_14
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x49014c]
sub ecx, edx
cmp ecx, esi
ja 0x4062da
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [edx + esi]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edi, [ecx + eax]
mov ecx, esi
mov esi, str.DB15_CAN_PIN6_14
jmp 0x40641d
mov edi, str.DB15_CAN_PIN3_11
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x406339
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.DB15_CAN_PIN3_11
lea edi, [eax + edx]
jmp 0x40641d
mov edi, str.DB15_NO_SWITCH_CHANNEL
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x406398
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.DB15_NO_SWITCH_CHANNEL
lea edi, [eax + edx]
jmp 0x40641d
mov edi, str.DB15_UNDEFINE
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4063f0
call fcn.0047e19b
test esi, esi
jbe 0x406435
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x406435
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.DB15_UNDEFINE
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004028e0
mov edi, 0x49c494
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40645a
call fcn.0047e19b
test esi, esi
jbe 0x40649f
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [eax + esi]
push ebx
call fcn.00402900
test al, al
je 0x40649f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x49c494
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 + 0x14]
call fcn.004028e0
movsx ecx, byte [esp + 0x100]
push ecx
lea edx, [esp + 0x90]
push str._n__W_INT8_iOutputVoltage___d_
push edx
call fcn.0047edef
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
mov edx, dword [esp + 0x18]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4064e4
call fcn.0047e19b
test esi, esi
jbe 0x40652b
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x40652b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x8c]
lea edi, [eax + edx]
mov edx, ecx
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]
lea ecx, [esp + 0x14]
call fcn.004028e0
mov edi, str._n__W_UINT16_ui16IoSelectItem_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x406550
call fcn.0047e19b
test esi, esi
jbe 0x406595
mov ecx, dword [esp + 0x18]
push 0
lea ebx, [ecx + esi]
lea ecx, [esp + 0x14]
push ebx
call fcn.00402900
test al, al
je 0x406595
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str._n__W_UINT16_ui16IoSelectItem_
lea edi, [eax + edx]
mov edx, ecx
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]
lea ecx, [esp + 0x14]
call fcn.004028e0
mov bl, byte [esp + 0x104]
test bl, 1
je 0x4065f9
mov edi, str.IOS_INPUT_POSITIVE_LOGIC
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4065c6
call fcn.0047e19b
test esi, esi
jbe 0x406663
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call fcn.00402900
test al, al
je 0x406663
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.IOS_INPUT_POSITIVE_LOGIC
lea edi, [eax + edx]
jmp 0x40664b
mov edi, str.IOS_INPUT_NEGATIVE_LOGIC
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40661e
call fcn.0047e19b
test esi, esi
jbe 0x406663
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call fcn.00402900
test al, al
je 0x406663
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.IOS_INPUT_NEGATIVE_LOGIC
lea edi, [eax + edx]
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004028e0
mov edi, 0x49c3b0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x406688
call fcn.0047e19b
test esi, esi
jbe 0x4066cd
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call fcn.00402900
test al, al
je 0x4066cd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x49c3b0
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004028e0
test bl, 2
je 0x40672a
mov edi, str.IOS_OUTPUT_POSITIVE_LOGIC
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4066f7
call fcn.0047e19b
test esi, esi
jbe 0x406794
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call fcn.00402900
test al, al
je 0x406794
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.IOS_OUTPUT_POSITIVE_LOGIC
lea edi, [eax + edx]
jmp 0x40677c
mov edi, str.IOS_OUTPUT_NEGATIVE_LOGIC
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40674f
call fcn.0047e19b
test esi, esi
jbe 0x406794
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call fcn.00402900
test al, al
je 0x406794
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.IOS_OUTPUT_NEGATIVE_LOGIC
lea edi, [eax + edx]
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004028e0
test bl, 0x80
je 0x406803
mov edi, str.IOS_OUTPUT_REVERSE
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4067be
call fcn.0047e19b
test esi, esi
jbe 0x406803
mov ecx, dword [esp + 0x18]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x14]
push ebp
call fcn.00402900
test al, al
je 0x406803
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, str.IOS_OUTPUT_REVERSE
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004028e0
test bl, 0x40
je 0x406872
mov edi, str.IOS_INPUT_PULL_UP
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x49014c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40682d
call fcn.0047e19b
test esi, esi
jbe 0x406872
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [eax + esi]
push ebx
call fcn.00402900
test al, al
je 0x406872
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.IOS_INPUT_PULL_UP
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 + 0x14]
call fcn.004028e0
cmp byte [esp + 0xf8], 4
jne 0x406897
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xf4], 0xffffffff
call fcn.004024d0
jmp 0x405d6e
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x40699c
mov cl, byte [esp + 0x23]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x48], esp
push 0
mov byte [ebx], cl
mov ecx, ebx
call fcn.004024d0
mov edi, str.CCommWithEcu::SetIoPort__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00402900
test al, al
je 0x4068fe
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, str.CCommWithEcu::SetIoPort__
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 [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x114], 2
call fcn.004023b0
push 0xfffffffffffffff6
lea ecx, [esp + 0x88]
mov byte [esp + 0x114], 1
call fcn.00417100
mov esi, eax
mov cx, word [esi + 4]
lea edi, [esi + 8]
mov word [esp + 0x40], cx
push 0
mov dl, byte [edi]
lea ecx, [esp + 0x48]
mov byte [esp + 0xf4], 3
mov byte [esp + 0x48], dl
call fcn.004024d0
mov eax, dword [0x49014c]
lea ecx, [esp + 0x44]
push eax
push 0
push edi
call fcn.0040f3e0
add esi, 0x18
lea ecx, [esp + 0x54]
push esi
mov byte [esp + 0xf4], 4
call fcn.004023b0
lea ecx, [esp + 0x3c]
push 0x495310
push ecx
mov dword [esp + 0x44], 0x490168
mov byte [esp + 0xf8], 3
call fcn.0047ef80
mov dl, byte [esp + 0x23]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x44], esp
push 0
mov ecx, ebp
mov byte [ebp], dl
call fcn.004024d0
mov edi, str.CCommWithEcu::SetIoPort__
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 0x4069f8
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, str.CCommWithEcu::SetIoPort__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x114], 5
call fcn.004023b0
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0xe0]
push eax
mov byte [esp + 0x114], 1
call fcn.00417100
mov esi, eax
mov cx, word [esi + 4]
lea edi, [esi + 8]
mov word [esp + 0x40], cx
push 0
mov dl, byte [edi]
lea ecx, [esp + 0x48]
mov byte [esp + 0xf4], 6
mov byte [esp + 0x48], dl
call fcn.004024d0
mov eax, dword [0x49014c]
lea ecx, [esp + 0x44]
push eax
push 0
push edi
call fcn.0040f3e0
mov cl, byte [esi + 0x18]
add esi, 0x18
mov byte [esp + 0x54], cl
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0xf4], 7
call fcn.004024d0
mov edx, dword [0x49014c]
lea ecx, [esp + 0x54]
push edx
push 0
push esi
call fcn.0040f3e0
lea eax, [esp + 0x3c]
push 0x495310
push eax
mov dword [esp + 0x44], 0x490168
mov byte [esp + 0xf8], 6
call fcn.0047ef80
sbb byte [esi + 0x40], 0
cmp bl, byte [esi + 64]
add byte [edx - 1275051938], bl
pop esi
inc eax
add byte [esi + 0x5e], ah
inc eax
add dh, cl
pop esi
inc eax
add byte [eax + 0x405f], dh
add dword [edx], eax
add dword [ebx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx + eax], eax
add dword [ecx], eax
add dword [esi], eax
push es
add eax, 0x5f1fff8b
inc eax
add byte [esi], dh
pop edi
inc eax
add byte [ebp + 0x5f], cl
inc eax
add byte [ebx + 0x5f], bh
inc eax
add byte [edi + ebx*2 + 0x40], ah
add byte [edx - 0x4fffbfa1], dl
pop edi
inc eax
add byte [eax], al
push es
push es
push es
add dword [esi], eax
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add al, byte [esi]
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add eax, dword [esi]
push es
add al, 6
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add eax, 0x609dff8b
inc eax
add byte [ebp + 0x60], al
inc eax
add al, al
pushal
inc eax
add byte [esi], al
popal
inc eax
add byte [edx + 0x60], bh
inc eax
add byte [esi + 0x61], ah
inc eax
add bl, ah
pushal
inc eax
add bl, cl
arpl word [eax], ax
add byte [ecx], al
add al, byte [ecx]
add eax, dword [ecx]
add dword [ecx], eax
add dword [ecx], eax
add al, 1
add dword [ecx], eax
add dword [0xff8b0607], eax
add eax, 0x28004062
bound eax, qword [eax]
dec ebx
bound eax, qword [eax]
adc al, 0x63
inc eax
add byte [edx + 0x63730040], dh
inc eax
add bl, cl
arpl word [eax], ax
add byte [esi], al
push es
push es
add dword [esi], eax
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add al, byte [esi]
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add eax, dword [esi]
push es
add al, 6
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
push es
add eax, 0x90909090
nop
nop
nop
nop
nop
nop