Function at 0x4484b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x466fdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbtablefor__std::basic_istream_char__struct_std::char_traits_char__]
push ebx
push esi
mov esi, ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbtablefor__std::basic_ostream_char__struct_std::char_traits_char__]
xor ebx, ebx
mov dword [esp + 0x5c], ecx
push edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x58], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x10], 1
mov dword [esp + 0xb0], edx
lea eax, [esp + 0x64]
push ebx
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0xf8], ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
push 3
lea ecx, [esp + 0x68]
mov dword [esp + 0xf4], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov ecx, dword [esp + 0x58]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x58], eax
movsx edx, word [esi + 0x1f4]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x60]
neg eax
sbb eax, eax
push edx
and eax, ecx
push str..COM
push eax
mov dword [esp + 0xfc], 2
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::ends_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 4
lea eax, [esp + 0x34]
lea ecx, [esp + 0x58]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4485a6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or edi, 0xffffffff
mov dword [esi + 0x1ec], eax
cmp eax, edi
mov eax, dword [esp + 0x38]
sete byte [esp + 0xf]
cmp eax, ebx
je 0x4485f1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4485e8
cmp al, 0xff
je 0x4485e8
dec al
mov byte [ecx], al
jmp 0x4485f1
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [esp + 0xf]
mov dword [esp + 0x38], ebx
cmp al, bl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x44863b
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x10], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x58], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0xf0], 3
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x4487a1
mov eax, dword [esi + 0x1ec]
push 0x400
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [esi + 0x1ec]
mov ecx, dword [esi + 0x214]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], edi
push edx
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov edx, dword [esi + 0x1ec]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esi + 0x1f8]
sub eax, ebx
je 0x4486d4
dec eax
jne 0x44872a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 0x1fc]
and ecx, 0xffffcfcb
mov dword [esp + 0x18], eax
or ecx, 1
mov byte [esp + 0x26], 8
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 2
jmp 0x44872a
mov ax, word [esi + 0x1f6]
mov edx, dword [esi + 0x1fc]
mov cl, al
mov dword [esp + 0x18], edx
and cl, 1
mov edx, dword [esp + 0x1c]
neg cl
sbb ecx, ecx
and eax, 1
neg ecx
inc ecx
and edx, 0xffffcffb
and ecx, 3
mov byte [esp + 0x26], 8
shl ecx, 0xa
or ecx, eax
mov byte [esp + 0x27], bl
shl ecx, 2
or ecx, edx
mov byte [esp + 0x28], bl
mov word [esp + 0x22], 0x20
mov word [esp + 0x24], 0xb78
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x1ec]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x4487d5
mov eax, dword [esp + 0x58]
lea edx, [esp + 0xb0]
mov dword [esp + 0x10], edx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x58], edx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov ebx, 4
lea eax, [esp + 0x64]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0xf0], 5
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0xf0], bl
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x64]
mov dword [esp + 0xf0], edi
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ax, 0x416
jmp 0x448863
lea eax, [esp + 0xe4]
mov dword [esi + 0x218], ebx
push eax
push ebx
push esi
push 0x447810
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x30], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x58], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0xf0], 6
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x64]
mov dword [esp + 0xf0], edi
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
xor ax, ax
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe8
ret