Function at 0x4b4ba0
Capabilities:
Check for time delay via gettickcount
Read file on windows
Resume thread
Suspend thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4ebb90]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x434], ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x4b4be2
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
push dword [0x4ede50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4b4c1f
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
push 0
push 0x14
call ebx
push dword [0x4ede50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
jne 0x4b4c02
mov ebx, dword [ebp - 0x434]
push dword [0x4ede50]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 1
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_SetCommMask]
push 0xc
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
movzx eax, byte [edi + 5]
xorps xmm0, xmm0
dec eax
mov byte [ebp - 0x430], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x420], 0
movups xmmword [ebp - 0x41c], xmm0
cmp eax, 0x12
ja case.0x4b4c81.8
movzx eax, byte [eax + 0x4b5bec]
jmp dword [eax*4 + 0x4b5bbc]
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x5dc
ja 0x4b4d28
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x428], 0
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, dword [ebp - 0x428]
test edx, edx
jne 0x4b4d36
push 0xa
call ebx
call esi
sub eax, edi
cmp eax, 0x5dc
jbe 0x4b4cf0
mov edx, dword [ebp - 0x428]
test edx, edx
je case.0x4b4c81.8
mov ecx, 0x14
lea eax, [ebp - 0x41c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b4d41
lea eax, [ebp - 0x41c]
push eax
push ecx
push edx
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je case.0x4b4c81.8
mov esi, dword [ebp - 0x428]
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
movzx eax, byte [ebp - 0x402]
lea ecx, [esi - 4]
cmp ecx, eax
jne case.0x4b4c81.8
cmp byte [ebp - 0x401], 1
jne case.0x4b4c81.8
lea edi, [esi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test edi, edi
je 0x4b4e07
xor edx, edx
nop
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, edi
jb 0x4b4df0
cmp byte [ebp + esi - 0x405], al
jne case.0x4b4c81.8
mov edi, dword [ebp - 0x434]
mov byte [ebp - 0x430], 1
test edi, edi
je case.0x4b4c81.8
push esi
call fcn.004bf3b1
mov dword [edi], eax
push dword [ebp - 0x428]
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.004c2130
add esp, 0x10
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b4ed0
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b4f87
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b4f70
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5020
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b50d7
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b50c0
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5170
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b5227
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b5210
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b52c0
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b5377
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b5360
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5410
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov ecx, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp ecx, edi
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
movzx eax, byte [ebp - 0x402]
add ecx, 0xfffffffc
cmp ecx, eax
jne case.0x4b4c81.8
cmp byte [ebp - 0x401], 4
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b54d7
xor edx, edx
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b54c0
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
test ebx, ebx
je case.0x4b4c81.8
push edi
call fcn.004bf3b1
mov dword [ebx], eax
jmp 0x4b4e31
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5580
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 6
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
cmp byte [ebp - 0x402], 2
jne case.0x4b4c81.8
cmp byte [ebp - 0x401], 5
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b54d7
xor edx, edx
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b5640
jmp 0x4b54d7
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b56e0
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b5797
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b5780
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5830
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b58e7
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b58d0
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5980
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b5a37
xor edx, edx
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b5a20
cmp byte [ebp + edi - 0x405], al
jne case.0x4b4c81.8
mov byte [ebp - 0x430], 1
jmp case.0x4b4c81.8
lea eax, [ebp - 0x41c]
push eax
push 0
push esi
push edi
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [ebp - 0x408]
push 1
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
cmp dword [ebp - 0x408], esi
jne case.0x4b4c81.8
push 0
lea eax, [ebp - 0x420]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_WaitCommEvent]
lea eax, [ebp - 0x42c]
push eax
push 0
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x14
lea eax, [ebp - 0x41c]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b5ad0
lea eax, [ebp - 0x41c]
push eax
push ecx
push dword [ebp - 0x428]
lea eax, [ebp - 0x404]
push eax
push dword [0x4ebb90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [0x4ebb90]
call edi
test eax, eax
je case.0x4b4c81.8
mov eax, dword [ebp - 0x408]
mov edi, dword [ebp - 0x428]
cmp eax, edi
jne case.0x4b4c81.8
cmp eax, 3
jne case.0x4b4c81.8
cmp byte [ebp - 0x404], 0x6a
jne case.0x4b4c81.8
cmp byte [ebp - 0x403], 1
jne case.0x4b4c81.8
lea esi, [edi - 1]
mov dword [ebp - 0x408], 0
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x4b5b77
xor edx, edx
nop
movzx eax, byte [ebp + ecx - 0x404]
inc ecx
add eax, edx
mov dword [ebp - 0x408], eax
mov edx, eax
cmp ecx, esi
jb 0x4b5b60
mov ecx, dword [ebp - 0x430]
mov edx, 1
cmp byte [ebp + edi - 0x405], al
movzx ecx, cl
cmove ecx, edx
mov dword [ebp - 0x430], ecx
push dword [0x4ede50]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x430]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret 4