Function at 0x4011a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
xor eax, eax
push ebx
mov dword [esp + 9], eax
push ebp
mov dword [esp + 0x11], eax
mov ebp, ecx
mov dword [esp + 0x15], eax
xor ebx, ebx
mov dword [esp + 0x19], eax
push esi
mov word [esp + 0x21], ax
mov dword [esp + 0xc], ebx
mov byte [esp + 0x23], al
mov eax, dword [ebp + 4]
cmp eax, ebx
mov byte [esp + 0x10], bl
jne 0x401419
push 0x44
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebx
mov dword [ebp + 4], eax
je 0x401419
mov byte [eax + 5], bl
mov ecx, dword [ebp + 4]
mov dword [ecx], ebx
mov edx, dword [ebp + 4]
mov dword [edx + 0x10], ebx
mov eax, dword [ebp + 4]
mov dword [eax + 0x14], ebx
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x34], ebx
mov edx, dword [ebp + 4]
mov dword [edx + 0x38], ebx
mov eax, dword [ebp + 4]
mov dword [eax + 0x20], ebx
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x24], ebx
mov ecx, ebp
call fcn.004010b0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
mov edx, dword [ebp + 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp + 4]
cmp dword [eax + 0x3c], ebx
jne 0x40124e
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 4]
push ecx
jmp 0x40140e
push ebx
push ebx
push 1
push ebx
call esi
mov edx, dword [ebp + 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 4]
cmp dword [eax + 0x28], ebx
jne 0x401276
mov eax, dword [eax + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 4]
push ecx
jmp 0x40140e
push edi
mov edi, str.._
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40000080
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 3
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0x28]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 4]
or esi, 0xffffffff
pop edi
mov dword [ecx], eax
mov ecx, dword [ebp + 4]
mov eax, dword [ecx]
cmp eax, esi
jne 0x401305
mov edx, dword [ecx + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
jmp 0x4013ff
push 5
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov eax, dword [ebp + 4]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 0x42]
mov dx, word [eax + 0x40]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov ecx, dword [ebp + 4]
push 0xf
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp + 4]
mov eax, 0x4b00
xor edx, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0xc8
div dword [ecx + 0xc]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
mov ecx, dword [ecx]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov ecx, ebp
call fcn.004014b0
test al, al
je 0x4013df
mov edx, dword [ebp + 4]
lea eax, [esp + 0xc]
push eax
push ebx
push ebp
push 0x401740
push ebx
push ebx
mov byte [edx + 5], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 4]
cmp eax, ebx
jne 0x4013c4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ecx + 5], bl
mov edx, dword [ebp + 4]
mov eax, dword [edx]
push eax
call esi
mov ecx, dword [ebp + 4]
mov dword [ecx], ebx
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x3c]
push eax
call esi
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x28]
push edx
call esi
mov eax, dword [ebp + 4]
push eax
jmp 0x40140e
mov edx, dword [esp + 0xc]
pop esi
mov dword [ecx + 0x14], edx
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 4]
pop ebp
pop ebx
mov eax, dword [edx]
add esp, 0x2c
ret 4
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [eax + 5], bl
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
push edx
call esi
mov eax, dword [ebp + 4]
mov dword [eax], ebx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x3c]
push edx
call esi
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x28]
push ecx
call esi
mov edx, dword [ebp + 4]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 4