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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10120b9e
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0xe0]
xor esi, esi
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x4d0], esi
cmp dword [ebx + 0x80], 1
jne 0x10052c02
push esi
push str.announce
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
jne 0x10052bed
push 0xaa
lea esi, [esp + 0x40]
mov edi, 0x10052800
call fcn.10034120
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
xor eax, eax
push eax
push edi
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x2c], esp
call fcn.100528d0
lea ecx, [esp + 0xb0]
push ecx
call fcn.100f41f0
add esp, 0x18
mov byte [esp + 0x4d0], 1
mov edx, dword [ebx + 0x1ac]
push edx
mov ecx, eax
call fcn.100f4310
mov byte [esp + 0x4d0], 0
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x10053410
add eax, 8
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10053410
test eax, eax
je 0x10053410
lea ecx, [eax - 8]
test ecx, ecx
je 0x10053410
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
jmp 0x10053410
push str.scrape
push 8
push eax
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP80.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__::replace_unsigned_int__unsigned_int__char_const__]
lea ecx, [esp + 0x80]
call fcn.100ea5e0
mov edi, dword [ebx + 0x184]
push esi
add edi, 0x48
push 0x3f
lea ecx, [esp + 0x88]
mov byte [esp + 0x1f], al
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
lea ecx, [esp + 0x80]
je 0x10052c47
push 0x1012b0e0
jmp 0x10052c4c
push 0x1012b3f4
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
push 0x1012b3f8
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
lea ecx, [ebx + 0x84]
mov eax, 0x14
lea edx, [esp + 0x9c]
call fcn.1003a190
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d4], 2
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4d0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebx + 0x80], esi
jne 0x100530f1
cmp byte [ebx + 0x174], 0
je 0x10052d1d
mov edx, dword [ebx + 0xd0]
mov eax, dword [ebx + 0xd4]
mov ecx, dword [ebx + 0xc8]
mov edi, dword [ebx + 0xb8]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 0xcc]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc0]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0xc4]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0xb0]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0xbc]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
jmp 0x10052d43
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
xor edi, edi
mov dword [esp + 0x40], esi
cmp byte [esp + 0x17], 0
mov esi, 1
jne 0x10052d56
movzx esi, word [ebx + 0xd8]
lea ecx, [ebx + 0x98]
mov eax, 0x14
lea edx, [esp + 0x9c]
call fcn.1003a190
cmp dword [eax + 0x18], 0x10
jb 0x10052d78
mov eax, dword [eax + 4]
jmp 0x10052d7b
add eax, 4
mov edx, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x11c]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x64]
push ecx
push edx
push edi
push esi
push eax
push str.peer_id_sport_duploaded_I64ddownloaded_I64dleft_I64dcorrupt_I64dredundant_I64dcompact1numwant_dkey_xno_peer_id1
mov esi, 0x400
lea edi, [esp + 0xf8]
call fcn.1000c210
add esp, 0x3c
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
push eax
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
cmp dword [ebx + 0x110], 0
je 0x10052e95
lea ecx, [ebx + 0xfc]
push ecx
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str.trackerid
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d4], 3
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
mov ecx, dword [esp + 0xa0]
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jae 0x10052e46
lea ecx, [esp + 0xa0]
mov eax, dword [esp + 0xb0]
lea edx, [esp + 0x3c]
call fcn.1003a190
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d4], 4
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4d0], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4d0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10052e9a
mov esi, 0x10
cmp dword [ebx + 0xdc], 0
je 0x10052eed
push str.event
lea ecx, [esp + 0x84]
mov dword [esp + 0x40], str.completed
mov dword [esp + 0x44], str.started
mov dword [esp + 0x48], str.stopped
mov dword [esp + 0x4c], str.paused
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
mov edx, dword [ebx + 0xdc]
mov eax, dword [esp + edx*4 + 0x38]
push eax
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
cmp byte [esp + 0x17], 0
je 0x10052f6d
push str.ip
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
mov ecx, dword [ebx + 0x1b0]
cmp dword [ecx + 0x80], esi
mov eax, dword [ecx + 0x7c]
jb 0x10052f1c
mov ecx, dword [ecx + 0x6c]
jmp 0x10052f1f
add ecx, 0x6c
lea edx, [esp + 0x9c]
call fcn.1003a190
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d4], 5
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4d0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str..i2p
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
jmp 0x100530ed
mov edx, dword [ebx + 0x184]
cmp byte [edx + 0x222], 0
jne 0x100530ed
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x98]
test eax, eax
je 0x10052fef
cmp dword [ecx + 0x9c], esi
jb 0x10052f9e
mov ecx, dword [ecx + 0x88]
jmp 0x10052fa4
add ecx, 0x88
lea edx, [esp + 0x3c]
call fcn.1003a190
push eax
lea ecx, [esp + 0xa0]
push str.ip
push ecx
mov byte [esp + 0x4dc], 6
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d4], 7
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x4d0], 6
jmp 0x10053070
cmp byte [edx + 0x284], 0
je 0x1005308f
lea eax, [esp + 0x9c]
push eax
push edx
call fcn.10098bd0
mov ecx, eax
call fcn.1001ab90
test al, al
je 0x1005308f
mov edx, dword [ebx + 0x184]
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.10098bd0
push eax
lea esi, [esp + 0x40]
call fcn.100a8030
add esp, 4
push eax
lea eax, [esp + 0xa0]
push str.ip
push eax
mov byte [esp + 0x4dc], 8
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4d4], 9
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x4d0], 8
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4d0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebx + 0x134], 0
je 0x100530be
push str.ipv6
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
lea ecx, [ebx + 0x120]
push ecx
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [ebx + 0x150], 0
je 0x100530ed
push str.ipv4
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_char_const__]
lea edx, [ebx + 0x13c]
push edx
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edi, dword [esp + 0x18]
push 0x430
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x4d0], 0xa
je 0x10053247
sub esp, 0x10
mov dword [esp + 0x20], esp
mov edi, esp
xor ecx, ecx
push ecx
movzx ecx, byte [0x10155355]
mov eax, 0x100534e0
push eax
movzx eax, byte [0x10155359]
push eax
push ecx
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x34], esp
call fcn.100528d0
push edi
call fcn.100f4360
add esp, 0x18
lea edi, [esp + 0x4c]
call fcn.10055230
sub esp, 0x10
mov dword [esp + 0x2c], esp
xor ecx, ecx
mov edi, esp
push ecx
mov byte [esp + 0x4e4], 0xb
movzx edx, byte [0x10155355]
mov eax, 0x10053630
push eax
push edx
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], esp
call fcn.100528d0
push edi
call fcn.10054fd0
add esp, 0x14
lea edi, [esp + 0xac]
call fcn.10055180
sub esp, 0x10
mov dword [esp + 0x2c], esp
mov edi, esp
xor ecx, ecx
push ecx
mov dword [esp + 0x4e4], 0xc
movzx ecx, byte [0x1015535b]
movzx edx, byte [0x10155359]
mov eax, 0x10053760
push eax
movzx eax, byte [0x10155358]
push eax
movzx eax, byte [0x10155355]
push ecx
push edx
push eax
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], esp
call fcn.100528d0
push edi
call fcn.10054ec0
add esp, 0x20
lea edi, [esp + 0x6c]
call fcn.100550d0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xa0]
push edx
push 1
mov eax, edi
mov dword [esp + 0x4dc], 0xd
mov dword [esp + 0x1c], 7
push eax
mov ecx, dword [ebx + 0x1a8]
mov edx, dword [ebx + 0x1ac]
push ecx
push edx
push esi
call fcn.10041fe0
mov edi, dword [esp + 0x18]
jmp 0x10053249
xor eax, eax
lea edx, [ebx + 0x17c]
mov ecx, eax
mov eax, edx
mov dword [esp + 0x4d0], 0x10
call fcn.100552e0
mov dword [esp + 0x4d0], 0xf
xor esi, esi
test byte [esp + 0x10], 4
je 0x100532a4
mov eax, dword [esp + 0x5c]
and dword [esp + 0x10], 0xfffffffb
cmp eax, esi
je 0x100532a4
test al, 1
jne 0x100532a0
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
je 0x100532a0
lea ecx, [esp + 0x64]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x5c], esi
mov dword [esp + 0x4d0], 0xe
test byte [esp + 0x10], 2
je 0x100532ec
mov eax, dword [esp + 0x9c]
and dword [esp + 0x10], 0xfffffffd
cmp eax, esi
je 0x100532ec
test al, 1
jne 0x100532e5
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
je 0x100532e5
lea ecx, [esp + 0xa4]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x9c], esi
mov dword [esp + 0x4d0], esi
test byte [esp + 0x10], 1
je 0x10053323
mov eax, dword [esp + 0x3c]
and dword [esp + 0x10], 0xfffffffe
cmp eax, esi
je 0x10053323
test al, 1
jne 0x10053323
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
je 0x10053323
lea ecx, [esp + 0x44]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
cmp dword [ebx + 0xdc], 3
jne 0x10053331
mov esi, dword [edi + 0x28]
jmp 0x10053334
mov esi, dword [edi + 0x20]
cmp byte [edi + 0x1da], 0
je 0x10053362
push 0x10129600
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x18], eax
mov byte [esp + 0x4d0], 0x11
or dword [esp + 0x10], 8
jmp 0x10053369
add edi, 4
mov dword [esp + 0x18], edi
push 0
mov eax, esi
cdq
push 0xf4240
push edx
push eax
call fcn.1010e450
push edx
push eax
call fcn.100b5be0
add esp, 8
mov edi, edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [ebx + 0x1a4]
push 5
push edx
xor edx, edx
cmp dword [ebx + 0xdc], 3
mov esi, eax
mov eax, dword [ebx + 0x17c]
sete dl
lea ecx, [ebx + 0x158]
add edx, 1
push edx
push edi
push esi
lea edx, [esp + 0x98]
push edx
mov edx, dword [ebx + 0x1b0]
push eax
call fcn.100424c0
mov dword [esp + 0x4d0], 0
test byte [esp + 0x10], 8
je 0x100533e7
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [ebx + 0x78]
mov eax, dword [esp + 0x94]
mov ecx, dword [ebx + 0x24]
add eax, 0x64
add dword [ecx + 0xc58], eax
add ecx, 0xbc8
cdq
add dword [ecx + 0xa0], eax
adc dword [ecx + 0xa4], edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x4d0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret