Function at 0x495b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5289
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [edi + 0x124]
mov dword [esp + 0x1c], edi
lea ebx, [edi + 0x120]
cmp ecx, ebp
jne 0x495b4a
mov dword [esp + 0x18], ebp
jmp 0x495b56
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], ebp
jbe 0x495b83
mov eax, dword [edi + 0x124]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x495b7a
lea ecx, [esi + 0x4c]
call fcn.00461e00
push esi
call fcn.0043b3d0
add esp, 4
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jb 0x495b5c
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.00497ea0
mov eax, dword [edi + 0x134]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x14], ecx
je 0x495d40
mov esi, dword [ecx + 0x10]
mov al, byte [esp + 0x13]
xor ebp, ebp
lea ecx, [esp + 0x30]
push ebp
mov byte [esp + 0x34], 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, dword [esp + 0x14]
mov dword [esp + 0x48], ebp
mov edx, dword [ecx + 0x10]
mov edi, dword [edx + 0xa0]
test edi, edi
je 0x495be8
mov ecx, edi
call fcn.00468d00
mov ebp, eax
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00467230
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x495bf6
mov ebx, 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]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 0x24]
sub edi, eax
jne 0x495c0d
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x495c2f
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push 0
push 0x3e8
push ecx
push edx
call fcn.004a7920
push 0
push edi
push edx
push eax
call fcn.004a78b0
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 8]
mov edi, dword [esp + 0x18]
push ebp
push ebx
mov ebx, dword [esi + 4]
push ebx
push eax
push edx
xor ebp, ebp
push ecx
push ebp
push ebp
add edi, 0xc
call fcn.00462cd0
add esp, 4
push eax
mov eax, dword [edi]
mov edi, dword [esp + 0x40]
push eax
push str.ID__u__TYPE_p2p__REASON__s__ERRCODE__u__Vol__I64d__Rate__u__ConnMs__d__BitMs__d__Protocol__d___s
push str.CIDCLOSE
mov ecx, dword [edi + 0x14]
push ecx
push 0x4d8d38
call fcn.0045e8e0
mov edx, dword [esp + 0x4c]
add esp, 0x38
mov eax, dword [edx + 0xc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x495cbd
cmp eax, 0xffffffff
je 0x495cbd
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, 0x4d8f7c
call fcn.004492c0
mov eax, dword [0x4d8f80]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x495cbd
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, 0x4d8f7c
call fcn.00448d00
mov ecx, dword [esi + 0xa0]
call fcn.004671f0
mov ebx, dword [esi + 0xa0]
cmp ebx, ebp
je 0x495ce2
mov ecx, ebx
call fcn.00467040
push ebx
call fcn.0043b3d0
add esp, 4
push esi
call fcn.0043b3d0
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, ebp
mov dword [esp + 0x48], 0xffffffff
je 0x495d19
mov al, byte [ecx - 1]
test al, al
je 0x495d0d
cmp al, 0xff
je 0x495d0d
dec al
mov byte [ecx - 1], al
jmp 0x495d19
add ecx, 0xfffffffe
push ecx
call fcn.0043b3d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call fcn.004795e0
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x134]
cmp ecx, eax
jne 0x495ba6
mov eax, dword [edi + 0x134]
mov ecx, dword [edi + 0x13c]
lea esi, [edi + 0x130]
mov edi, eax
mov eax, dword [eax]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x495dc3
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.004787a0
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ecx]
jne 0x495dc3
mov ecx, dword [esi + 4]
cmp edi, ecx
jne 0x495dc3
mov edx, dword [ecx + 4]
mov ecx, esi
push edx
call fcn.004794a0
mov eax, dword [esi + 4]
mov ecx, dword [0x51adc8]
lea edx, [esp + 0x20]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
push edx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov ecx, esi
mov dword [eax + 8], eax
call fcn.004787a0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
cmp eax, edi
je 0x495dec
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00497e40
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.004790a0
cmp dword [esp + 0x18], edi
jne 0x495dc7
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret