Function at 0x401850
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421f3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov al, byte [ebp - 0x11]
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x54], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [ebp - 0x11]
push esi
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [ebp - 0x11]
lea ecx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov edi, str.8F5CA63B_FEC4_4971_A42E_AF82948532AD
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 4], 2
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
mov dword [ebp - 0x18], ecx
lea esi, [ecx + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 4
and ecx, 3
mov dword [ebp - 0x1c], edx
rep stosb byte es:[edi], al
mov edi, str.Pipe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.8F5CA63B_FEC4_4971_A42E_AF82948532AD
lea ecx, [ecx + edx + 1]
mov dword [ebp - 0x20], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx + 0xc]
and ecx, 3
mov dword [ebp - 0x74], eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [eax]
mov ecx, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x6c], eax
mov al, byte [0x42c630]
test al, 1
mov dword [ebp - 0x70], ecx
jne 0x4019a7
mov dl, al
mov ecx, 0x42c640
or dl, 1
mov dword [0x42c640], 0
mov byte [0x42c630], dl
call fcn.00401430
push 0x4013f0
call fcn.00421abf
mov edx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [0x42c640]
test eax, eax
jne 0x4019b4
xor eax, eax
jmp 0x4019c9
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
push esi
push edi
push ecx
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push edx
call dword [0x42c64c]
test eax, eax
mov dword [ebx + 0x1024], eax
je 0x401d06
push str.InitReceiver_succeed.
mov dword [ebx + 0x102c], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebx + 0x1030]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x74]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov eax, dword [edx]
lea edx, [ebp - 0x84]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebx + 0x1040]
push 0
push edx
push 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x401ca2
cmp eax, 1
jne 0x401c86
lea eax, [ebx + 0x1014]
lea ecx, [ebx + 0x14]
push eax
lea edx, [ebx + 0x1024]
push ecx
push edx
mov byte [ebp - 4], 3
call fcn.00412b80
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x401a7c
test esi, esi
mov dword [ebp - 4], 2
je 0x4019ec
mov edx, dword [ebx + 0x10]
lea eax, [ebx + 0x10]
push edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.004124b0
mov eax, dword [eax + 4]
test eax, eax
jne 0x401ab5
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 eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x42a040
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0xc]
not ecx
dec ecx
cmp eax, ecx
mov dword [ebp - 0x18], ecx
jae 0x401ae5
mov ecx, eax
mov esi, dword [esi + 8]
mov edi, 0x42a040
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401af8
sbb edx, edx
sbb edx, 0xffffffff
xor esi, esi
cmp edx, esi
jne 0x401bb2
mov edi, dword [ebp - 0x18]
cmp eax, edi
jb 0x401bb2
xor edx, edx
cmp eax, edi
setne dl
cmp edx, esi
jne 0x401bb2
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x68], ecx
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x64], edx
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x60], eax
mov ecx, dword [edi + 0x24]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [ebp - 0x5c], ecx
mov edx, dword [edi + 0x28]
mov dword [ebp - 0x58], edx
mov ecx, dword [eax]
push ecx
lea edx, [edi + 0x2c]
push esi
push edx
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [edi + 0x3c]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [edi + 0x4c]
mov ecx, dword [eax]
push ecx
push esi
push edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [ebx + 0x1038]
lea eax, [ebp - 0x68]
push eax
call fcn.0040c440
mov ecx, dword [ebx + 0x1038]
push esi
push esi
push 0x401
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
jmp 0x4019ec
mov edi, 0x42c460
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401bfa
mov ecx, edi
mov edi, dword [ebp - 0x40]
mov eax, ecx
mov esi, 0x42c460
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
xor esi, esi
mov byte [ecx + eax], 0
mov edi, 0x42c460
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x5c], esi
mov edi, ecx
lea ecx, [ebp - 0x54]
push edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x401c50
mov ecx, edi
mov edi, dword [ebp - 0x50]
mov edx, ecx
mov esi, 0x42c460
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
xor esi, esi
mov byte [ecx + eax], 0
mov ecx, dword [ebx + 0x1038]
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x60], esi
call fcn.0040c440
mov eax, dword [ebx + 0x1038]
push esi
push esi
push 0x10
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [ebp - 0x1c]
push 1
mov ecx, edi
mov edx, dword [edi]
call dword [edx]
jmp 0x4019ec
cmp eax, 2
je 0x401c9b
cmp eax, 3
je 0x401c9b
cmp eax, 0x83
jne 0x4019ec
mov ecx, ebx
call fcn.00401e70
mov eax, dword [ebx + 0x1024]
test eax, eax
je 0x401d06
mov al, byte [0x42c630]
test al, 1
jne 0x401ce1
mov dl, al
mov ecx, 0x42c640
or dl, 1
mov dword [0x42c640], 0
mov byte [0x42c630], dl
call fcn.00401430
push 0x4013f0
call fcn.00421abf
add esp, 4
mov ecx, dword [0x42c640]
mov eax, dword [ebx + 0x1024]
test ecx, ecx
je 0x401cfc
push eax
call dword [0x42c650]
test eax, eax
jne 0x401d06
mov dword [ebx + 0x1024], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x401d2a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401d21
cmp al, 0xff
je 0x401d21
dec al
mov byte [ecx], al
jmp 0x401d2a
push ecx
call fcn.004218a8
add esp, 4
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
je 0x401d59
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401d50
cmp al, 0xff
je 0x401d50
dec al
mov byte [ecx], al
jmp 0x401d59
push ecx
call fcn.004218a8
add esp, 4
mov eax, dword [ebp - 0x50]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
je 0x401d99
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401d90
cmp al, 0xff
je 0x401d90
dec al
mov byte [ecx], al
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call fcn.004218a8
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret