Function at 0x422c50
Capabilities:
Check for time delay via gettickcount
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [ebp - 0x7d], 0x7974706d
mov dword [ebp - 0x89], 0x74736574
mov dword [ebp - 0x85], 0x6961775f
mov dword [ebp - 0x81], 0x65787474
mov byte [ebp - 0x79], 0
call fcn.004224e0
cmp eax, 0xffffffff
je 0x423720
lea edi, [ebp - 0x28]
mov ebx, eax
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetCommState]
sub esp, 8
mov dword [ebp - 0xa8], eax
call fcn.0057d110
mov esi, dword fs:[0x18]
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x325
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetCommState_error__ld_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa8]
mov dword [esp], edx
call fcn.00421f50
movzx eax, word [0x58efdc]
mov dword [ebp - 0x24], 0x96
mov byte [ebp - 0x14], 0
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 0x20]
and ax, 0xcfcf
or ax, 0x1010
mov word [ebp - 0x20], ax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetCommState]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x32d
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetCommState_error__ld_n
call fcn.00421f50
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x70], 0x3e8
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetCommTimeouts]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x332
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetCommTimeouts_error__ld_n
call fcn.00421f50
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetupComm]
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x335
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetUpComm_error__ld_n
call fcn.00421f50
mov eax, dword [sym.imp.kernel32.dll_SetCommMask]
mov dword [esp + 4], 4
mov dword [esp], ebx
mov dword [ebp - 0xbc], eax
call eax
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x33b
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetCommMask_error__ld_n
call fcn.00421f50
lea eax, [ebp - 0xa4]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x89]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x11
mov dword [esp], ebx
mov dword [ebp - 0xcc], eax
call eax
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x33f
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.WriteFile_on_an_overlapped_handle_without_ovl_structure_should_fail_n
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x340
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x58bc5c
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.00421f50
mov ecx, dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov dword [ebp - 0xb0], ecx
call ecx
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xa8], edi
call edi
lea ecx, [ebp - 0x64]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [ebp - 0xac], eax
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0xa4]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x89]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x11
mov dword [esp], ebx
mov eax, dword [ebp - 0xcc]
call eax
sub esp, 0x14
mov dword [ebp - 0xb4], eax
call edi
mov edi, eax
call fcn.0057d110
mov edx, dword [ebp - 0xb4]
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x349
mov eax, dword [ebp - 0xa4]
mov ecx, dword [esi + 0x34]
test edx, edx
je 0x423730
mov dword [esp + 0x10], ecx
cmp eax, 0x11
je 0x423db0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 0
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x34c
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x10], 0x96
sub edi, eax
mov eax, dword [ebp - 0xa4]
mov dword [esp + 4], str.WriteFile_took__ld_ms_to_write__ld_Bytes_at__ld_Baud_n
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
xor eax, eax
cmp edi, 0x1d
setbe al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.00421f50
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [ebp - 0xb0]
call eax
mov dword [ebp - 0xa0], 0
sub esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xa8]
call eax
mov dword [edi + 0x34], 0xdeadbeef
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x50]
mov dword [esp + 8], eax
lea eax, [ebp - 0xa0]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_WaitCommEvent]
mov dword [esp], ebx
mov dword [ebp - 0xc0], eax
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x357
mov eax, 1
mov edx, dword [edi + 0x34]
test esi, esi
jne 0x4230b4
xor eax, eax
cmp edx, 0x3e5
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.WaitCommEvent_error__ld_n
call fcn.00421f50
mov eax, dword [ebp - 0xa8]
call eax
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x359
mov eax, dword [ebp - 0xc8]
mov dword [esp + 4], str.WaitCommEvent_should_have_returned_immediately__took__ld_ms_n
sub esi, eax
xor eax, eax
cmp esi, 0x1d
mov dword [esp + 8], esi
setbe al
mov dword [esp], eax
call fcn.00421f50
mov dword [esp + 4], 0x5dc
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov dword [ebp - 0xac], eax
call eax
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x35b
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.WaitCommEvent_failed_with_a_timeout_n
mov dword [esp], eax
call fcn.00421f50
test esi, esi
jne 0x4239a0
lea eax, [ebp - 0xa4]
mov dword [esp], ebx
mov edi, 1
mov dword [esp + 8], eax
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov dword [esp + 0xc], 0
mov dword [ebp - 0xc4], eax
call eax
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x35f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetOverlappedResult_reported_error__ld_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x360
mov eax, dword [ebp - 0xa4]
mov dword [esp + 8], 4
cmp eax, 4
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.expected__u__written__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
mov eax, dword [ebp - 0xa8]
call eax
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x370
mov eax, dword fs:[0x18]
mov dword [ebp - 0xb8], eax
mov eax, dword [eax + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.WaitCommEvent_error__ld_n
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x371
mov eax, dword [ebp - 0xa0]
mov dword [esp + 4], str.WaitCommEvent:_expected_EV_TXEMPTY__got__lx_n
mov dword [esp + 8], eax
and eax, 4
mov dword [esp], eax
call fcn.00421f50
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov dword [ebp - 0xb4], edi
call edi
mov ecx, dword [ebp - 0xc8]
sub esp, 4
sub esi, ecx
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x375
mov dword [esp + 4], esi
mov dword [esp], str.WaitCommEvent_for_EV_TXEMPTY_took__ld_ms__timeout_1500__n
call fcn.004219c0
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x376
xor eax, eax
cmp esi, 0x4af
setbe al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.WaitCommEvent_used__ld_ms_for_waiting_n
call fcn.00421f50
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov ecx, dword [ebp - 0xac]
call ecx
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x379
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.WriteFile_failed_with_a_timeout_n
mov dword [esp], eax
call fcn.00421f50
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0xa4]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc4]
call edx
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x37b
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetOverlappedResult_reported_error__ld_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x37c
mov eax, dword [ebp - 0xa4]
mov dword [esp + 8], 0x11
cmp eax, 0x11
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.expected__u__written__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], ebx
call edi
mov dword [ebp - 0xa8], 0
sub esp, 4
mov eax, 1
call fcn.004224e0
mov edi, eax
cmp eax, 0xffffffff
je 0x423720
mov dword [esp + 4], 4
mov dword [esp], eax
mov eax, dword [ebp - 0xbc]
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x387
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.SetCommMask_error__ld_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00421f50
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x423a60
mov ebx, dword [sym.imp.kernel32.dll_ClearCommError]
lea edx, [ebp - 0x98]
lea esi, [ebp - 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], edi
call ebx
sub esp, 0xc
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3a3
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], str.InQueue_should_be_empty__got__ld_bytes_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3a4
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], str.OutQueue_should_be_empty__got__ld_bytes_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3a5
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], str.ClearCommErrors:_Unexpected_error_0x_08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.00421f50
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [ebp - 0xb0]
call eax
mov dword [esi + 0x34], 0xdeadbeef
mov dword [ebp - 0x40], eax
sub esp, 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0xa0], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0xa0]
mov dword [esp + 4], eax
mov dword [esp], edi
mov eax, dword [ebp - 0xc0]
call eax
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3ad
mov eax, 1
mov edx, dword [esi + 0x34]
test ebx, ebx
jne 0x423593
xor eax, eax
cmp edx, 0x3e5
sete al
mov dword [esp + 0xc], edx
mov esi, dword [ebp - 0xa8]
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._ld:_WaitCommEvent_error__ld_n
call fcn.00421f50
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0xac]
call eax
sub esp, 8
mov ebx, eax
test esi, esi
je 0x423968
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3b4
xor eax, eax
cmp ebx, 0x102
sete al
mov dword [esp + 4], str.WaitCommEvent_should_fail_with_a_timeout_n
mov dword [esp], eax
call fcn.00421f50
test ebx, ebx
jne 0x4237a0
lea eax, [ebp - 0xa4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov dword [esp], edi
mov eax, dword [ebp - 0xc4]
call eax
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3b8
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetOverlappedResult_reported_error__ld_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3b9
mov eax, dword [ebp - 0xa4]
mov dword [esp + 8], 4
cmp eax, 4
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.expected__u__written__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3ba
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.WaitCommEvent_error__ld_n
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3bb
mov eax, dword [ebp - 0xa0]
mov dword [esp + 4], str.WaitCommEvent:_expected_EV_TXEMPTY__got__lx_n
mov dword [esp + 8], eax
and eax, 4
mov dword [esp], eax
call fcn.00421f50
mov dword [esp], edi
mov eax, dword [ebp - 0xb4]
call eax
mov eax, dword [ebp - 0xa8]
sub esp, 4
test eax, eax
jne 0x423720
mov dword [ebp - 0xa8], 1
jmp 0x4233ce
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi + 0x34], 0x3e5
je 0x423d80
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 0
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x34b
mov eax, dword [ebp - 0xa4]
mov dword [esp + 4], 0x58bcbd
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
jmp 0x422fbc
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3bf
mov eax, dword [ebp - 0xa0]
mov dword [esp + 4], str.WaitCommEvent:_expected_0__got__lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
mov ebx, dword fs:[0x18]
call fcn.00421f50
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [ebp - 0xb0]
call eax
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [ebp - 0x2c], eax
sub esp, 0x10
lea eax, [ebp - 0x3c]
mov dword [esp + 8], eax
lea eax, [ebp - 0xa0]
mov dword [esp + 4], eax
mov dword [esp], edi
mov eax, dword [ebp - 0xc0]
call eax
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3c6
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.WaitCommEvent_should_fail_if_there_is_a_pending_wait_n
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3c7
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x58bc5c
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.00421f50
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
sub esp, 4
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3cb
mov dword [esp], str.recovering_after_WAIT_TIMEOUT..._n
call fcn.004219c0
mov dword [esp + 4], 4
mov dword [esp], edi
mov ecx, dword [ebp - 0xbc]
call ecx
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3cd
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.SetCommMask_error__ld_n
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00421f50
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov edx, dword [ebp - 0xac]
call edx
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3d0
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.WaitCommEvent_failed_with_a_timeout_n
mov dword [esp], eax
call fcn.00421f50
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
sub esp, 4
jmp 0x4236f7
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x3b2
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.WaitCommEvent_failed_with_a_timeout_n
mov dword [esp], eax
call fcn.00421f50
jmp 0x423601
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x366
mov dword [esp], str.recovering_after_WAIT_TIMEOUT..._n
call fcn.004219c0
mov dword [esp + 4], 4
mov dword [esp], ebx
mov eax, dword [ebp - 0xbc]
call eax
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x368
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], esi
mov dword [esp + 4], str.SetCommMask_error__ld_n
mov dword [esp + 8], eax
call fcn.00421f50
mov dword [esp + 4], 0x3e8
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0xac]
call eax
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x36b
xor eax, eax
test esi, esi
sete al
mov dword [esp + 4], str.WaitCommEvent_failed_with_a_timeout_n
xor edi, edi
mov dword [esp], eax
call fcn.00421f50
mov eax, dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov dword [ebp - 0xc4], eax
jmp 0x4231f8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [ebp - 0xb0]
call eax
mov esi, dword [ebp - 0xb8]
mov dword [ebp - 0x54], eax
sub esp, 0x10
lea eax, [ebp - 0x64]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa4]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x89]
mov dword [esp + 8], 0x11
mov dword [esp + 4], eax
mov dword [esp], edi
mov eax, dword [ebp - 0xcc]
call eax
sub esp, 0x14
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x390
mov eax, dword [ebp - 0xa4]
mov edx, dword [esi + 0x34]
test ebx, ebx
je 0x423d10
mov dword [esp + 0x10], edx
cmp eax, 0x11
je 0x423dd8
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 0
call fcn.00421f50
lea edx, [ebp - 0x98]
lea esi, [ebp - 0x9c]
mov ebx, dword [sym.imp.kernel32.dll_ClearCommError]
mov dword [esp + 8], edx
mov dword [ebp - 0xc8], edx
mov dword [esp + 4], esi
mov dword [esp], edi
call ebx
sub esp, 0xc
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x395
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], str.InQueue_should_be_empty__got__ld_bytes_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x396
mov edx, dword [ebp - 0x90]
mov eax, 1
test edx, edx
mov edx, dword [ebp - 0xc8]
jne 0x423bb7
mov ecx, dword [0x8f0770]
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0xd4], edx
mov dword [esp], eax
mov dword [esp + 4], str.OutQueue_should_not_be_empty_n
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x397
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], str.ClearCommErrors:_Unexpected_error_0x_08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
lea eax, [ebp - 0xa4]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
lea eax, [ebp - 0x64]
mov dword [esp + 4], eax
mov dword [esp], edi
mov eax, dword [ebp - 0xc4]
call eax
sub esp, 0x10
mov dword [ebp - 0xc8], eax
call fcn.0057d110
mov dword [eax], 0x58b46e
mov ecx, dword fs:[0x18]
mov dword [eax + 4], 0x39a
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0xd0], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetOverlappedResult_reported_error__ld_n
mov eax, dword [ebp - 0xc8]
mov dword [esp], eax
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x39b
mov eax, dword [ebp - 0xa4]
mov dword [esp + 8], 0x11
cmp eax, 0x11
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.expected__u__written__lu_n
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
sub esp, 4
mov dword [ebp - 0xc8], eax
call fcn.0057d110
mov ecx, dword [ebp - 0xd0]
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x39f
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.FlushFileBuffers_error__ld_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc8]
mov dword [esp], eax
call fcn.00421f50
mov edx, dword [ebp - 0xd4]
jmp 0x42344a
mov ecx, dword [ebp - 0xb8]
cmp dword [ecx + 0x34], 0x3e5
je 0x423e00
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 0
call fcn.00421f50
call fcn.0057d110
mov dword [eax], 0x58b46e
mov dword [eax + 4], 0x392
mov eax, dword [ebp - 0xa4]
mov dword [esp + 4], 0x58bcbd
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00421f50
jmp 0x423b27
mov dword [esp + 0x10], 0x3e5
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 1
call fcn.00421f50
jmp 0x423761
mov dword [esp + 0xc], 0x11
mov dword [esp + 8], edx
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 1
call fcn.00421f50
jmp 0x422fbc
mov dword [esp + 0xc], 0x11
mov dword [esp + 8], ebx
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 1
call fcn.00421f50
jmp 0x423b27
mov dword [esp + 0x10], 0x3e5
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.WriteFile_returned__d__written__lu_bytes__error__ld_n
mov dword [esp], 1
call fcn.00421f50
jmp 0x423d47