Function at 0x47a190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4addd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov al, byte [esp + 0x7c]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x48], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x84], ebx
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.0047a780
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov dword [esi + 0x1b0], eax
mov ax, word [esi + 0x1ac]
mov byte [esp + 0x5c], 0x21
push eax
mov byte [esp + 0x61], bl
call edi
mov word [esp + 0x5e], ax
mov ax, word [esi + 0x106]
push eax
call edi
mov word [esp + 0x6e], ax
mov ax, word [esi + 0x108]
push eax
call edi
mov word [esp + 0x6c], ax
mov eax, dword [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp word [esi + 0xd4], bx
mov dword [esp + 0x68], eax
mov ebp, 0x28
je 0x47a322
cmp dword [esi + 0xfc], 4
jge 0x47a322
mov eax, dword [esi + 0x278]
mov byte [esp + 0x5d], 1
inc eax
mov byte [esp + 0x72], bl
cmp eax, 0x1e
mov byte [esp + 0x73], 4
mov ebp, 0x1e
ja 0x47a275
mov ebp, eax
xor edi, edi
cmp ebp, ebx
jbe 0x47a2fa
mov ecx, dword [esi + 0x27c]
cmp ecx, ebx
je 0x47a2f5
xor edx, edx
mov dx, word [esi + 0x106]
lea eax, [edx + edi + 2]
mov edx, dword [esi + 0x278]
and edx, eax
cmp dword [ecx + edx*4], ebx
je 0x47a2f5
mov edx, 1
mov ecx, edi
shl edx, cl
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push str._d_
push eax
or ecx, edx
mov dword [esp + 0x1c], ecx
call fcn.00459bf0
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0x84], 1
mov edx, dword [ecx]
lea ecx, [esp + 0x44]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
inc edi
cmp edi, ebp
jb 0x47a27b
mov eax, dword [esp + 0x10]
mov ebp, 0x2e
mov ecx, eax
mov edx, eax
mov byte [esp + 0x74], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
mov byte [esp + 0x75], cl
mov byte [esp + 0x76], dl
mov byte [esp + 0x77], al
jmp 0x47a348
cmp byte [esp + 0x8c], bl
je 0x47a348
xor eax, eax
mov byte [esp + 0x5d], 2
mov dword [esp + 0x74], eax
mov byte [esp + 0x72], bl
mov byte [esp + 0x73], 8
mov dword [esp + 0x78], eax
mov ebp, 0x32
cmp dword [0x4d1574], ebx
je 0x47a3cb
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0047a550
mov eax, dword [eax + 4]
mov byte [esp + 0x84], 2
cmp eax, ebx
jne 0x47a370
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
xor edx, edx
xor ecx, ecx
mov dx, word [esi + 0x106]
mov cx, word [esi + 0x108]
push edx
mov edx, dword [esi + 0x1ac]
push ecx
push edx
push eax
push str._s:_seed___5d__send_____ack__pkt_seq_nr:_5d__pkt_ack_nr:_5d
push 0x4d1048
call fcn.00453980
mov ecx, dword [esp + 0x50]
add esp, 0x18
cmp ecx, ebx
mov byte [esp + 0x84], bl
je 0x47a3cb
mov al, byte [ecx - 1]
cmp al, bl
je 0x47a3bf
cmp al, 0xff
je 0x47a3bf
dec al
mov byte [ecx - 1], al
jmp 0x47a3cb
add ecx, 0xfffffffe
push ecx
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0047d6e0
add esp, 8
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp eax, ebx
mov byte [esp + 0x84], 3
je 0x47a3f4
mov edi, eax
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.0047a550
mov eax, dword [eax + 4]
mov byte [esp + 0x84], 4
cmp eax, ebx
jne 0x47a414
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov edx, dword [esi + 0x1ac]
xor ecx, ecx
mov cx, word [esi + 0x106]
push edi
push ecx
push edx
push eax
lea eax, [esp + 0x24]
push str._s:_seed___5d__send____eack__ack_nr:_d__bits:___s_
push eax
call fcn.00459bf0
add esp, 0x18
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x47a45f
mov al, byte [ecx - 1]
cmp al, bl
je 0x47a453
cmp al, 0xff
je 0x47a453
dec al
mov byte [ecx - 1], al
jmp 0x47a45f
lea eax, [ecx - 2]
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x84], 6
je 0x47a499
mov al, byte [ecx - 1]
cmp al, bl
je 0x47a48d
cmp al, 0xff
je 0x47a48d
dec al
mov byte [ecx - 1], al
jmp 0x47a499
add ecx, 0xfffffffe
push ecx
call fcn.0049c000
add esp, 4
mov eax, dword [0x4d1574]
mov dword [esp + 0x38], ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x47a4c9
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x47a4bb
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 0x4d1048
call fcn.00453980
add esp, 8
mov ecx, esi
call fcn.0047a7c0
lea ecx, [esp + 0x54]
push ebp
push ecx
mov ecx, esi
call fcn.0047a110
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, ebx
je 0x47a505
mov al, byte [ecx - 1]
cmp al, bl
je 0x47a4f9
cmp al, 0xff
je 0x47a4f9
dec al
mov byte [ecx - 1], al
jmp 0x47a505
add ecx, 0xfffffffe
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x47a537
mov al, byte [ecx - 1]
cmp al, bl
je 0x47a52b
cmp al, 0xff
je 0x47a52b
dec al
mov byte [ecx - 1], al
jmp 0x47a537
add ecx, 0xfffffffe
push ecx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4