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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a4fec
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp word [esi + 0xdc], bp
je 0x47a71e
mov eax, dword [esp + 0xfc]
push ebx
push edi
lea edi, [esp + 0x6c]
lea ecx, [eax*8 - 1]
xor eax, eax
mov dword [esp + 0x14], ecx
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov eax, dword [0x4c8f24]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], ebx
je 0x47a171
mov edx, dword [esp + 0x100]
lea ecx, [esp + 0x4c]
mov eax, dword [edx]
push eax
push ecx
call fcn.0047a910
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, ebp
mov dword [esp + 0xf4], ebp
je 0x47a103
mov edi, eax
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.004777f0
mov eax, dword [eax + 4]
mov byte [esp + 0xf4], 1
cmp eax, ebp
jne 0x47a123
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 ecx, dword [esp + 0xfc]
mov edx, dword [esi + 0x1ac]
push ecx
push edi
push edx
push eax
push str._s:_seed__5d_:_receive_eack__s_base__d
push 0x4c89f8
call fcn.00453b40
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf4], 0
push 1
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_]
push 1
lea ecx, [esp + 0x50]
mov dword [esp + 0xf8], 0xffffffff
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 edx, dword [esp + 0x14]
mov eax, dword [esp + 0xfc]
lea ecx, [esp + 0x6c]
lea edi, [edx + eax]
mov dword [esp + 0x18], ecx
mov ax, word [esi + 0x108]
xor ecx, ecx
mov cx, word [esi + 0xdc]
sub ax, di
dec eax
and eax, 0xffff
dec ecx
cmp eax, ecx
jge 0x47a3b8
mov eax, dword [esi + 0x284]
inc ebx
cmp eax, ebp
je 0x47a3b8
mov ecx, dword [esi + 0x280]
and ecx, edi
mov eax, dword [eax + ecx*4]
cmp eax, ebp
je 0x47a3b8
test dword [eax + 0x10], 0x7fffffff
je 0x47a3b8
cmp edx, ebp
jl 0x47a267
mov ecx, edx
mov eax, 1
and ecx, 7
shl eax, cl
mov ecx, dword [esp + 0x100]
sar edx, 3
mov dl, byte [edx + ecx]
test dl, al
je 0x47a267
cmp dword [0x4c8f24], ebp
je 0x47a25a
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.004777f0
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], 2
cmp eax, ebp
jne 0x47a228
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 ecx, dword [esi + 0x1ac]
push edi
push ecx
push eax
push str._s:_seed___5d__selective_ack_nr:_d_received
push 0x4c89f8
call fcn.00453b40
add esp, 0x14
lea ecx, [esp + 0x4c]
mov dword [esp + 0xf4], 0xffffffff
push 1
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_]
push edi
mov ecx, esi
call fcn.00479b90
jmp 0x47a3b8
mov dx, word [esi + 0x10c]
mov eax, edi
sub eax, edx
and eax, 0xffff
cmp eax, 0x1ff
ja 0x47a326
mov eax, dword [0x4c8cb0]
cmp ebx, eax
jb 0x47a326
xor ecx, ecx
mov cl, byte [esi + 0xd6]
cmp ecx, eax
jae 0x47a326
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc edx
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [0x4c8f24]
cmp eax, ebp
mov dword [esp + 0x10], edx
je 0x47a3b8
lea edx, [esp + 0x5c]
mov ecx, esi
push edx
call fcn.004777f0
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], 3
cmp eax, ebp
jne 0x47a2e5
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 cl, byte [esi + 0xd6]
push ecx
push ebx
push edi
push edx
push eax
push str._s:_seed___5d__selective_ack_nr:_d_resending____duplicate_ack__d__last_dup:_d
push 0x4c89f8
call fcn.00453b40
add esp, 0x1c
lea ecx, [esp + 0x5c]
mov dword [esp + 0xf4], 0xffffffff
push 1
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_]
jmp 0x47a3b8
cmp dword [0x4c8f24], ebp
je 0x47a3b8
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004777f0
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], 4
cmp eax, ebp
jne 0x47a355
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 cl, byte [esi + 0xd6]
push ecx
push ebx
push edi
push edx
push eax
push str._s:_seed___5d__selective_ack_nr:_d_not_resend___duplicate_ack__d__last_dup:_d
push 0x4c89f8
call fcn.00453b40
mov eax, dword [esp + 0x3c]
add esp, 0x1c
cmp eax, ebp
mov dword [esp + 0xf4], 0xffffffff
je 0x47a3ac
mov cl, byte [eax - 1]
test cl, cl
je 0x47a3a0
cmp cl, 0xff
je 0x47a3a0
dec cl
mov byte [eax - 1], cl
jmp 0x47a3ac
add eax, 0xfffffffe
push eax
call fcn.00437568
add esp, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov edx, dword [esp + 0x14]
dec edx
dec edi
cmp edx, 0xffffffff
mov dword [esp + 0x14], edx
jge 0x47a187
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x30], ebx
mov ax, cx
sub ax, word [esi + 0x10c]
dec eax
cmp ax, 0x100
jae 0x47a40c
mov eax, dword [0x4c8cb0]
cmp ebx, eax
jb 0x47a40c
xor edx, edx
mov dl, byte [esi + 0xd6]
cmp edx, eax
jae 0x47a40c
mov ebx, dword [esp + 0x10]
dec ecx
mov dword [esp + ebx*4 + 0x6c], ecx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x47a410
mov ebx, dword [esp + 0x10]
cmp ebx, ebp
jle 0x47a563
mov al, byte [esp + 0x2f]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x1c], al
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebp
cmp ebx, ebp
mov dword [esp + 0xf4], 5
jle 0x47a4b7
lea edi, [esp + 0x6c]
mov ecx, dword [edi]
lea edx, [esp + 0x38]
push ecx
push str._d_
push edx
call fcn.00459a30
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 + 0xf4], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x1c]
push edx
push ebp
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_]
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0xf4], 5
cmp ecx, ebp
je 0x47a4a1
mov al, byte [ecx - 1]
test al, al
je 0x47a495
cmp al, 0xff
je 0x47a495
dec al
mov byte [ecx - 1], al
jmp 0x47a4a1
lea eax, [ecx - 2]
push eax
call fcn.00437568
add esp, 4
add edi, 4
dec ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
jne 0x47a441
mov eax, dword [esp + 0x20]
cmp dword [0x4c8f24], ebp
je 0x47a535
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, ebp
je 0x47a4cb
mov edi, eax
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
call fcn.004777f0
mov eax, dword [eax + 4]
mov byte [esp + 0xf4], 7
cmp eax, ebp
jne 0x47a4eb
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 ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x1ac]
push edi
push ecx
push edx
push eax
push str._s:_seed___5d__detect__d_resend__packets:__s
push 0x4c89f8
call fcn.00453b40
mov ecx, dword [esp + 0x78]
add esp, 0x18
cmp ecx, ebp
je 0x47a531
mov al, byte [ecx - 1]
test al, al
je 0x47a525
cmp al, 0xff
je 0x47a525
dec al
mov byte [ecx - 1], al
jmp 0x47a531
lea eax, [ecx - 2]
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0xf4], 0xffffffff
je 0x47a563
mov cl, byte [eax - 1]
test cl, cl
je 0x47a557
cmp cl, 0xff
je 0x47a557
dec cl
mov byte [eax - 1], cl
jmp 0x47a563
add eax, 0xfffffffe
push eax
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x10]
xor bl, bl
cmp eax, ebp
mov dword [esp + 0x14], ebp
jle 0x47a712
lea edx, [esp + eax*4 + 0x6c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x284]
dec ecx
sub edx, 4
mov dword [esp + 0x10], ecx
cmp eax, ebp
mov ecx, dword [edx]
mov dword [esp + 0x34], edx
je 0x47a6fd
mov edi, dword [esi + 0x280]
and edi, ecx
mov edi, dword [eax + edi*4]
cmp edi, ebp
je 0x47a6fd
mov ax, word [edi + 0x2f]
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
push eax
call ebx
mov ebp, eax
mov ax, word [edi + 0x2d]
push eax
call ebx
mov ebx, eax
mov eax, dword [edi + 0x15]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x48], eax
mov eax, dword [0x4c8f24]
test eax, eax
je 0x47a6bc
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004777f0
mov eax, dword [eax + 4]
mov dword [esp + 0xf4], 8
test eax, eax
jne 0x47a609
mov ecx, 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 dword [esp + 0x18], ecx
jmp 0x47a60d
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xe4]
mov ecx, dword [esi + 0xe0]
xor edx, edx
and ebp, 0xffff
mov dx, word [esi + 0xdc]
and ebx, 0xffff
push edx
mov edx, eax
sub edx, ecx
push edx
push ecx
mov ecx, dword [esi + 0x12c]
push eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
mov ecx, dword [edi + 4]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x58]
and eax, 0xffff
push edx
mov edx, dword [esi + 0x1ac]
push eax
mov eax, dword [esp + 0x30]
push ecx
push ebp
push ebx
push edx
push eax
push str._s:_seed___5d__FR2Send_data__pkt_seq_nr:_5d__pkt_ack_nr:_5d__payload:_4d__flag:_d__quota:_d__max_window:_d__cur_window:_d__left:_d__cur_window_packet:_d
push 0x4c89f8
call fcn.00453b40
mov eax, dword [esp + 0x70]
xor ebx, ebx
add esp, 0x34
cmp eax, ebx
mov dword [esp + 0xf4], 0xffffffff
je 0x47a6b0
mov cl, byte [eax - 1]
test cl, cl
je 0x47a6a4
cmp cl, 0xff
je 0x47a6a4
dec cl
mov byte [eax - 1], cl
jmp 0x47a6b0
add eax, 0xfffffffe
push eax
call fcn.00437568
add esp, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x68]
add edx, ecx
push edi
mov dword [esi + 0x68], edx
mov eax, dword [esi + 0x6c]
adc eax, 0
mov ecx, esi
mov dword [esi + 0x6c], eax
mov bl, 1
call fcn.004772e0
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
inc eax
mov word [esi + 0x10c], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4c8cb4]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jae 0x47a70b
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jg 0x47a579
test bl, bl
je 0x47a712
mov ecx, esi
call fcn.0047a740
mov al, byte [esp + 0x30]
pop edi
mov byte [esi + 0xd6], al
pop ebx
mov ecx, dword [esp + 0xe4]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xe8
ret 0xc