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

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x421f5d
mov eax, dword [esp + 0x7c]
mov dword [0x54e9c4], eax
mov edx, dword [esp + 0x60]
lea ecx, [esp]
call fcn.0043a610
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [0x54e9c4]
push eax
push eax
push 0x48b412
push dword [esp + 0xc]
call fcn.00442e80
lea eax, [esp + 4]
push eax
call fcn.00462b10
push dword [esp]
mov edx, 0x48b097
pop ecx
call fcn.00462bf0
je 0x422056
push 0
push 0
push str.elnv_new_i2c_arcadia___:_ERROR:_instruction_i2c_arcadia__is_empty
call fcn.00429fbb
push 1
push 5
push 0x518350
call fcn.00440b40
push dword [0x54e9c4]
push 0
push 0
push dword [0x54e9c4]
mov edx, str.ERROR_CODE:
call fcn.00462b90
mov eax, dword [0x54e9c4]
push eax
push eax
movzx eax, word [0x518350]
cdq
push edx
push eax
call fcn.00442150
pop eax
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
mov edx, 0x492700
push dword [0x54e9c4]
call fcn.00462b90
pop eax
add eax, dword [0x5148c0]
jmp 0x422a09
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x32
cmp dword [esp + 0x68], 0
je 0x422075
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x18], 0
push 1
push 0x492700
push dword [esp + 8]
call fcn.00442b60
and eax, eax
je 0x422099
jmp 0x4229fb
push 0x48b412
push dword [esp + 4]
call fcn.00442f60
mov dword [esp + 0x10], eax
push dword [esp]
mov edx, 0x48b097
pop ecx
call fcn.00462bf0
je 0x42214e
push 0
push 0
push str.elnv_new_i2c_arcadia___:_ERROR:_no_lines
call fcn.00429fbb
push 1
push 5
push 0x518350
call fcn.00440b40
push dword [0x54e9c4]
push 0
push 0
push dword [0x54e9c4]
mov edx, str.ERROR_CODE:
call fcn.00462b90
mov eax, dword [0x54e9c4]
push eax
push eax
movzx eax, word [0x518350]
cdq
push edx
push eax
call fcn.00442150
pop eax
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
mov edx, 0x492700
push dword [0x54e9c4]
call fcn.00462b90
pop eax
add eax, dword [0x5148c0]
jmp 0x422a09
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x42215e
mov dword [esp + 0x10], 1
push 2
push 0x28
call fcn.0045d4a3
mov ebx, eax
push dword [esp + 0x10]
mov eax, ebx
pop ecx
cdq
idiv ecx
mov ebx, eax
mov dword [esp + 0x1c], ebx
push dword [esp + 0x74]
call fcn.0042933f
mov edx, 0x48b097
lea ecx, [esp + 0x20]
call fcn.0043a618
movzx ebx, byte [0x518355]
and ebx, ebx
jle 0x4221ce
push 1
push 7
push 0x518350
call fcn.00440b40
push 0
push 0
push str.elnv_new_i2c_arcadia___:_ERROR:_CANCEL__flag_cancel_0_
call fcn.00429fbb
jmp 0x422932
mov eax, dword [0x54e9c4]
push eax
push eax
push 0x48b412
mov ebx, dword [esp + 0x18]
inc ebx
push ebx
push dword [esp + 0x10]
call fcn.00442460
lea eax, [esp + 0x28]
push eax
call fcn.00462b10
push dword [esp + 0x24]
mov edx, 0x48b097
pop ecx
call fcn.00462bf0
je 0x422209
jmp 0x422932
inc dword [esp + 0xc]
push dword [0x54e9c4]
push 0x10
push dword [esp + 0x2c]
call fcn.004240b7
lea eax, [esp + 0x2c]
push eax
call fcn.00462b10
push 1
push 0x492700
push dword [esp + 0x30]
call fcn.00442b60
and eax, eax
je 0x422257
push 0
push 0
push dword [esp + 0x30]
call fcn.00429fbb
jmp 0x4222c4
push dword [0x54e9c4]
push 0
push 0
mov eax, dword [0x54e9c4]
push eax
push eax
push 1
push 1
push 0
mov eax, dword [0x54e9c4]
push eax
push eax
push 6
push 1
push dword [esp + 0x58]
call fcn.00442360
inc dword [0x54e9c4]
push dword [esp + 0x4c]
mov edx, dword [0x5148c0]
add dword [esp + 4], edx
call fcn.004427a0
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
cmp word [0x518350], 0
je 0x42236a
push 0
push 0
push 0x48f344
call fcn.00429fbb
push dword [0x54e9c4]
push 0
push 0
push dword [0x54e9c4]
mov edx, str.elnv_new_i2c_arcadia___:_ERROR:_from_fill_buffer
call fcn.00462b90
mov edx, dword [esp + 0x38]
call fcn.00462b90
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
inc dword [esp + 8]
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x14]
jl 0x42233a
jmp 0x422932
dec dword [esp + 0xc]
mov word [0x518350], 0
push 0x64
call fcn.00421e72
jmp 0x42292d
mov edx, str.ST_0_9A_F_SP
lea ecx, [esp + 0x2c]
call fcn.0043a618
mov ebx, dword [esp + 0x68]
cmp ebx, 2
jne 0x42238b
mov dword [esp + 0x30], 0
jmp 0x422393
mov dword [esp + 0x30], 2
push dword [esp + 0x2c]
push 0
call fcn.00444380
and eax, eax
je 0x4228b2
push 8
lea edx, [esp + 0x38]
push edx
push 0x4940a8
mov edx, dword [esp + 0x40]
call fcn.0043a620
mov eax, 1
push 4
call fcn.0043a6d0
push dword [esp + 0x34]
push dword [esp + 0x2c]
push 0
call fcn.004443a0
mov dword [esp + 0x3c], eax
mov eax, dword [0x54e9c4]
push eax
push eax
push 0x48cb73
mov eax, dword [0x54e9c4]
push eax
push eax
push 0x48cb59
mov eax, dword [0x54e9c4]
push eax
push eax
push 0x48cae6
push dword [esp + 0x58]
call fcn.0043a879
mov ebx, eax
mov ebp, dword [esp + 0x58]
shl ebx, 2
push dword [ebp + ebx]
call fcn.00442e80
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00442e80
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00442e80
lea eax, [esp + 0x44]
push eax
call fcn.00462b10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
push dword [esp + 0x40]
call fcn.00442430
mov ebx, eax
add ebx, 0xfffffffe
mov eax, ebx
mov ecx, 2
cdq
idiv ecx
mov ebx, eax
dec ebx
cmp ebx, dword [esp + 0x44]
jl 0x4224be
movzx ebx, byte [esp + 4]
mov eax, dword [0x54e9c4]
push eax
push eax
push dword [0x54e9c4]
push 2
mov edi, dword [esp + 0x54]
add edi, edi
inc edi
push edi
push dword [esp + 0x54]
call fcn.00442360
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.004408b4
pop dword [0x54e9c4]
add ebx, eax
mov eax, ebx
mov byte [esp + 4], al
inc dword [esp + 0x44]
jno 0x422453
mov eax, dword [0x54e9c4]
push eax
push eax
push 2
push dword [esp + 0x4c]
call fcn.00442430
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0x50]
call fcn.00442360
lea eax, [esp + 0x4c]
push eax
call fcn.00462b10
mov eax, dword [0x54e9c4]
push eax
push eax
push 0x48bbfc
push 2
mov eax, dword [0x54e9c4]
push eax
push eax
movzx eax, byte [esp + 0x1c]
cdq
push edx
push eax
call fcn.00442d30
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00442620
lea eax, [esp + 0x50]
push eax
call fcn.00462b10
push dword [0x54e9c4]
push 0
push 0
push dword [0x54e9c4]
mov edx, str.elnv_new_i2c_arcadia___:_Checksumm_
call fcn.00462b90
mov edx, dword [esp + 0x58]
call fcn.00462b90
mov edx, 0x48d1d6
call fcn.00462b90
mov edx, dword [esp + 0x5c]
call fcn.00462b90
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
mov byte [esp + 4], 0
push dword [esp + 0x48]
call fcn.004408b4
mov ebx, eax
push dword [esp + 0x4c]
call fcn.004408b4
cmp ebx, eax
je 0x4225bb
mov ebx, dword [esp + 0x68]
and ebx, ebx
je 0x4225a7
mov ebx, dword [esp + 0x68]
cmp ebx, 2
je 0x4225a7
jmp 0x4225ae
mov eax, 1
jmp 0x4225b0
xor eax, eax
and eax, eax
je 0x4225bb
mov eax, 1
jmp 0x4225bd
xor eax, eax
and eax, eax
je 0x422651
push dword [esp + 0x40]
call fcn.00442430
mov ebx, eax
cmp ebx, 4
jne 0x4225ed
push dword [esp + 0x40]
mov edx, str.915A
pop ecx
call fcn.00462bf0
je 0x4225ed
mov eax, 1
jmp 0x4225ef
xor eax, eax
and eax, eax
je 0x4225f5
jmp 0x42264c
push 0
push 0
push str._CS
call fcn.00429fbb
inc dword [esp + 8]
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x14]
jl 0x422648
push 0
push 0
push str.elnv_new_i2c_arcadia___:_ERROR:_CS
call fcn.00429fbb
push 1
push 2
push 0x518350
call fcn.00440b40
jmp 0x422932
dec dword [esp + 0xc]
jmp 0x4228b0
mov eax, dword [0x54e9c4]
push eax
push eax
push 4
push 3
push dword [esp + 0x34]
call fcn.00442360
inc dword [0x54e9c4]
mov edx, str.90A5
pop ecx
mov dword [0x54e9c4], ecx
add ecx, dword [0x5148c0]
call fcn.00462bf0
je 0x4226ca
mov eax, dword [0x54e9c4]
push eax
push eax
push 6
push 1
push dword [esp + 0x50]
call fcn.00442360
inc dword [0x54e9c4]
mov edx, str.915AA5
pop ecx
mov dword [0x54e9c4], ecx
add ecx, dword [0x5148c0]
call fcn.00462bf0
jne 0x4226ca
mov eax, 1
jmp 0x4226cc
xor eax, eax
and eax, eax
je 0x422731
push 0
push 0
push str._90A55A
call fcn.00429fbb
inc dword [esp + 8]
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x14]
jl 0x422723
push 0
push 0
push str.elnv_new_i2c_arcadia___:_ERROR:_90A55A
call fcn.00429fbb
push 1
push 2
push 0x518350
call fcn.00440b40
jmp 0x422932
dec dword [esp + 0xc]
jmp 0x42292d
mov ebx, dword [esp + 0x68]
cmp ebx, 2
jne 0x422810
mov eax, dword [0x54e9c4]
push eax
push eax
push 2
push 3
push dword [esp + 0x34]
call fcn.00442360
inc dword [0x54e9c4]
mov edx, 0x490930
pop ecx
mov dword [0x54e9c4], ecx
add ecx, dword [0x5148c0]
call fcn.00462bf0
je 0x4227fc
mov eax, dword [0x54e9c4]
push eax
push eax
push 2
push 1
push dword [esp + 0x50]
call fcn.00442360
inc dword [0x54e9c4]
mov edx, 0x490930
pop ecx
mov dword [0x54e9c4], ecx
add ecx, dword [0x5148c0]
call fcn.00462bf0
jne 0x4227f4
mov eax, dword [0x54e9c4]
push eax
push eax
push 2
push 1
push dword [esp + 0x50]
call fcn.00442360
inc dword [0x54e9c4]
mov edx, 0x490933
pop ecx
mov dword [0x54e9c4], ecx
add ecx, dword [0x5148c0]
call fcn.00462bf0
jne 0x4227f4
mov eax, 1
jmp 0x4227f6
xor eax, eax
and eax, eax
jne 0x4227fc
jmp 0x422803
mov eax, 1
jmp 0x422805
xor eax, eax
and eax, eax
je 0x422810
mov eax, 1
jmp 0x422812
xor eax, eax
and eax, eax
je 0x42287c
push 0
push 0
push str._CA_53
call fcn.00429fbb
inc dword [esp + 8]
inc dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x14]
jl 0x422869
push 0
push 0
push str.elnv_new_i2c_arcadia___:_ERROR:_CA_53
call fcn.00429fbb
push 1
push 2
push 0x518350
call fcn.00440b40
jmp 0x422932
dec dword [esp + 0xc]
push 0x12c
call fcn.00421e72
jmp 0x42292d
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x20]
push dword [0x54e9c4]
call fcn.00462b90
mov edx, dword [esp + 0x44]
call fcn.00462b90
mov edx, 0x48b412
call fcn.00462b90
lea eax, [esp + 0x24]
push eax
call fcn.00462b10
jmp 0x4228b2
mov ebx, dword [0x51800c]
and ebx, ebx
jl 0x4228ca
cmp dword [esp + 0x64], 0
je 0x4228ca
mov eax, 1
jmp 0x4228cc
xor eax, eax
and eax, eax
je 0x422920
mov ebx, dword [esp + 0x78]
cmp ebx, 1
jne 0x422911
push 2
push 0x28
call fcn.0045d4a3
mov ebx, eax
add ebx, 0xfffffff4
mov edi, dword [esp + 0x10]
inc edi
push edi
mov eax, ebx
pop ecx
cdq
idiv ecx
mov ebx, eax
cmp ebx, 2
jne 0x422909
add dword [0x51800c], 2
jmp 0x42290f
inc dword [0x51800c]
jmp 0x422920
mov ebx, dword [esp + 0xc]
imul ebx, dword [esp + 0x1c]
mov dword [0x51800c], ebx
mov ebx, dword [esp + 0x70]
imul ebx, ebx, 0x64
push ebx
call fcn.00421e72
jmp 0x422196
push dword [0x54e9c4]
push 0
push 0
push dword [0x54e9c4]
mov edx, str.elnv_new_i2c_arcadia___:_Total:
call fcn.00462b90
mov eax, dword [0x54e9c4]
push eax
push eax
mov eax, dword [esp + 0x24]
cdq
push edx
push eax
call fcn.00442150
pop eax
mov edx, str.__Errors:
call fcn.00462b90
mov eax, dword [0x54e9c4]
push eax
push eax
mov eax, dword [esp + 0x20]
cdq
push edx
push eax
call fcn.00442150
pop eax
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
push dword [0x54e9c4]
push 0
push 0
push dword [0x54e9c4]
mov edx, str.ERROR_CODE:
call fcn.00462b90
mov eax, dword [0x54e9c4]
push eax
push eax
movzx eax, word [0x518350]
cdq
push edx
push eax
call fcn.00442150
pop eax
mov edx, dword [0x5148c0]
add dword [esp], edx
call fcn.00429fbb
pop dword [0x54e9c4]
mov edx, dword [esp + 0x20]
push dword [0x54e9c4]
call fcn.00462b90
pop eax
add eax, dword [0x5148c0]
jmp 0x422a09
mov eax, dword [0x54e9c4]
add eax, dword [0x5148c0]
mov byte [eax], 0
push dword [esp]
call fcn.00462c80
push dword [esp + 0x20]
call fcn.00462c80
push dword [esp + 0x24]
call fcn.00462c80
push dword [esp + 0x28]
call fcn.00462c80
push dword [esp + 0x2c]
call fcn.00462c80
push dword [esp + 0x40]
call fcn.00462c80
push dword [esp + 0x48]
call fcn.00462c80
push dword [esp + 0x4c]
call fcn.00462c80
push eax
mov edx, dword [esp + 0x38]
call fcn.0043a620
pop eax
add esp, 0x50
pop edi
pop ebx
pop ebp
ret 0x1c