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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48a985
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov al, byte [ebp + 4]
mov dword [ebp + 0xc], 0
test al, al
jne 0x409f11
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
test al, al
je 0x40a098
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40a098
call fcn.0044b050
test eax, eax
je 0x40a098
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.004024d0
mov edi, str.CCommWithEcu::VoltageHighLowTime_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
call fcn.00402900
test al, al
je 0x409f8d
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, str.CCommWithEcu::VoltageHighLowTime_
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 + 0x1c]
call fcn.004028e0
movsx ecx, word [esp + 0xfc]
lea eax, [esp + 0x40]
push 0xa
xor esi, esi
push eax
push ecx
mov dword [esp + 0x100], esi
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 + 0x20]
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 + 0x20]
call fcn.0040f8b0
mov ecx, dword [esp + 0x100]
mov eax, dword [ecx + 4]
test eax, eax
je 0x40a04c
mov edx, dword [ecx + 8]
sub edx, eax
sar edx, 1
cmp esi, edx
jae 0x40a04c
movsx edx, word [eax + esi*2]
lea ecx, [esp + 0x40]
push 0xa
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 + 0x20]
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 + 0x20]
call fcn.0040f8b0
inc esi
jmp 0x409fe5
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 + 0x20]
call fcn.0040f8b0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40a077
mov eax, 0x490148
mov ecx, dword [ebp + 0x10]
push 0
push eax
call fcn.00418a80
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0xf8], 0xffffffff
call fcn.004024d0
mov eax, dword [ebp + 0x1c]
push 0
mov ebx, 3
mov byte [eax], 2
mov ecx, dword [ebp + 0x1c]
mov al, byte [esp + 0x100]
mov byte [ecx + 1], 3
mov edx, dword [ebp + 0x1c]
mov cl, byte [esp + 0x17]
mov byte [edx + 2], al
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
call fcn.004024d0
movsx esi, word [esp + 0xfc]
push esi
lea edx, [esp + 0x94]
push str.W_INT16_iHighLowTimes___d
push edx
mov dword [esp + 0x100], 1
mov dword [esp + 0x48], esi
call fcn.0047edef
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
lea ecx, [esp + 0x2c]
push edi
mov dword [esp + 0x1c], edi
call fcn.00402900
test al, al
je 0x40a148
mov ecx, edi
mov edi, dword [esp + 0x2c]
mov eax, ecx
lea esi, [esp + 0x90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov byte [ecx + eax], 0
test esi, esi
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], 0
jle 0x40a256
mov al, byte [esp + 0x13]
test al, al
je 0x40a16e
mov edx, dword [ebp + 0x1c]
mov byte [edx + ebx], 0xff
jmp 0x40a175
mov eax, dword [ebp + 0x1c]
mov byte [eax + ebx], 0
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x90]
mov ax, word [eax + edx*2]
mov dword [esp + 0x18], eax
movsx eax, ax
push eax
push str.__n___d
push ecx
call fcn.0047edef
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [0x49014c]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
cmp edx, esi
ja 0x40a1cc
call fcn.0047e19b
test esi, esi
jbe 0x40a21a
mov eax, dword [esp + 0x30]
push 0
add eax, esi
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x40], eax
call fcn.00402900
test al, al
je 0x40a21a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
lea esi, [esp + 0x90]
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 + 0x38]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004028e0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
add ebx, 3
sar edx, 8
mov byte [ecx + ebx - 2], dl
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov byte [edx + ebx - 1], al
mov al, byte [esp + 0x13]
test al, al
sete al
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40a15d
mov al, byte [ebp + 4]
test al, al
je 0x40a2be
mov edi, dword [ebp + 0x1c]
add ebp, 0x20
add edi, ebx
lea ecx, [esp + 0x18]
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
push ecx
push 1
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 1
call fcn.0040fa90
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xf8], 0xffffffff
call fcn.004024d0
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
xor ax, ax
mov dword fs:[0], ecx
pop ebx
add esp, 0xe8
ret 8
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp]
push ebx
push edx
call fcn.0041dcd0
mov edi, dword [ebp + 0x18]
mov ecx, 0x19
xor eax, eax
push 0xffff
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp]
push eax
call fcn.0041df00
mov ebp, dword [ebp + 0x18]
add ebp, 8
test eax, eax
movsx si, byte [ebp]
mov dword [esp + 0x18], esi
je 0x40a32d
test si, si
jne 0x40a440
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x40a2a0
mov al, byte [ecx - 1]
test al, al
je 0x40a31e
cmp al, 0xff
je 0x40a31e
dec al
mov byte [ecx - 1], al
jmp 0x40a2a0
dec ecx
push ecx
call fcn.0047e190
add esp, 4
jmp 0x40a2a0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x28], esp
push 0
mov byte [ebx], cl
mov ecx, ebx
call fcn.004024d0
mov edi, str.CCommWithEcu::VoltageHighLowTime__
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 0x40a387
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, str.CCommWithEcu::VoltageHighLowTime__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], ebp
mov ebx, dword [ebx + 4]
add ebx, ebp
mov byte [ebx], 0
sub esp, 0x10
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
mov byte [esp + 0x118], 2
call fcn.004023b0
push 0xfffffffffffffff6
lea ecx, [esp + 0x8c]
mov byte [esp + 0x118], 1
call fcn.00417100
mov esi, eax
mov cx, word [esi + 4]
lea edi, [esi + 8]
mov word [esp + 0x44], cx
push 0
mov dl, byte [edi]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xf8], 3
mov byte [esp + 0x4c], dl
call fcn.004024d0
mov eax, dword [0x49014c]
lea ecx, [esp + 0x48]
push eax
push 0
push edi
call fcn.0040f3e0
mov cl, byte [esi + 0x18]
add esi, 0x18
mov byte [esp + 0x58], cl
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf8], 4
call fcn.004024d0
mov edx, dword [0x49014c]
lea ecx, [esp + 0x58]
push edx
push 0
push esi
call fcn.0040f3e0
lea eax, [esp + 0x40]
push 0x495310
push eax
mov dword [esp + 0x48], 0x490168
mov byte [esp + 0xfc], 3
call fcn.0047ef80
mov cl, byte [esp + 0x13]
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::VoltageHighLowTime__
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 0x40a49f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, str.CCommWithEcu::VoltageHighLowTime__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov dword [ebx + 8], ebp
mov ebx, dword [ebx + 4]
mov byte [ebx + ebp], 0
add ebx, ebp
sub esp, 0x10
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x118], 5
call fcn.004023b0
push esi
lea ecx, [esp + 0xe8]
mov byte [esp + 0x118], 1
call fcn.00417100
mov esi, eax
mov cx, word [esi + 4]
lea edi, [esi + 8]
mov word [esp + 0x6c], cx
mov bl, 6
mov dl, byte [edi]
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0xf8], bl
mov byte [esp + 0x74], dl
call fcn.004024d0
mov eax, dword [0x49014c]
lea ecx, [esp + 0x70]
push eax
push 0
push edi
call fcn.0040f3e0
mov cl, byte [esi + 0x18]
add esi, 0x18
mov byte [esp + 0x80], cl
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xf8], 7
call fcn.004024d0
mov edx, dword [0x49014c]
lea ecx, [esp + 0x80]
push edx
push 0
push esi
call fcn.0040f3e0
lea eax, [esp + 0x68]
push 0x495310
push eax
mov dword [esp + 0x70], 0x490168
mov byte [esp + 0xfc], bl
call fcn.0047ef80