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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5684
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x4e0]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
push 0xffffffffffffffff
mov dword [esp + 0x18], esi
lea eax, [ebx + 0xe0]
push esi
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], esi
mov byte [esp + 0xc8], 0
call fcn.0040b390
mov dword [esp + 0x4e8], esi
cmp dword [ebx + 0x80], 1
jne 0x592772
push 8
push str.announce
lea eax, [esp + 0xc0]
push eax
xor eax, eax
call fcn.004b2430
cmp eax, 0xffffffff
jne 0x59275d
push 0xaa
lea esi, [esp + 0x40]
mov edi, 0x592430
call fcn.004b2660
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
xor eax, eax
push eax
push edi
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x34], esp
call fcn.00596150
lea eax, [esp + 0xa8]
push eax
call fcn.00599330
add esp, 0x18
mov byte [esp + 0x4e8], 1
mov ecx, dword [ebx + 0x1bc]
push ecx
mov ecx, eax
call fcn.00599450
mov byte [esp + 0x4e8], 0
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x592742
add eax, 8
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x592742
test eax, eax
je 0x592742
lea ecx, [eax - 8]
test ecx, ecx
je 0x592742
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
cmp dword [esp + 0xd0], 0x10
jb 0x5930ce
mov ecx, dword [esp + 0xbc]
push ecx
jmp 0x5930c6
push 6
push str.scrape
push 8
lea edi, [esp + 0xc4]
call fcn.00590e60
lea ecx, [esp + 0xb8]
call fcn.004b59f0
mov byte [esp + 0x1b], al
mov eax, dword [ebx + 0x194]
add eax, 0x44
push 1
mov dword [esp + 0x24], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xc0]
push eax
xor eax, eax
mov byte [esp + 0x28], 0x3f
call fcn.004b2430
cmp eax, 0xffffffff
push 1
lea eax, [esp + 0xbc]
je 0x5927bf
push 0x616ea8
jmp 0x5927c4
push 0x61ca1c
call fcn.004320d0
push 0xa
push str.info_hash
lea eax, [esp + 0xc0]
call fcn.004320d0
lea ecx, [ebx + 0x84]
mov eax, 0x14
lea esi, [esp + 0x94]
call fcn.004b09a0
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov byte [esp + 0x4f0], 2
call fcn.00432230
mov byte [esp + 0x4e8], 0
cmp dword [esp + 0xac], 0x10
jb 0x59282f
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0059b877
add esp, 4
cmp dword [ebx + 0x80], 0
jne 0x592d84
push 0x3ff
xor esi, esi
lea edx, [esp + 0xd9]
push esi
push edx
mov byte [esp + 0xe0], 0
call fcn.005be600
add esp, 0xc
cmp byte [ebx + 0x174], 0
je 0x5928f7
mov eax, dword [ebx + 0x180]
mov ecx, dword [ebx + 0x184]
mov edx, dword [ebx + 0x178]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x17c]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0xd0]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xd4]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc8]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0xcc]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0xc0]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc4]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0xb0]
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0xb4]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 0xbc]
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp 0x59292f
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
cmp byte [esp + 0x1b], 0
mov edi, 1
jne 0x592942
movzx edi, word [ebx + 0xd8]
lea ecx, [ebx + 0x98]
mov eax, 0x14
lea esi, [esp + 0x94]
call fcn.004b09a0
mov ecx, dword [esp + 0x20]
mov edx, 0x10
cmp dword [ecx + 0x18], edx
jb 0x59296c
mov ecx, dword [ecx + 4]
jmp 0x59296f
add ecx, 4
cmp dword [eax + 0x18], edx
jb 0x592979
mov eax, dword [eax + 4]
jmp 0x59297c
add eax, 4
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ebx + 0x118]
push ecx
mov ecx, dword [ebx + 0x11c]
push edx
mov edx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x98]
push edx
mov edx, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push ecx
push edi
push eax
push str.peer_id_sport_duploaded_I64ddownloaded_I64dleft_I64dcorrupt_I64dredundant_I64dcompact1numwant_dkey_xno_peer_id1downloadRate_I64duploadRate_I64dsoftVersion_s
mov esi, 0x400
lea edi, [esp + 0x124]
call fcn.0049f990
add esp, 0x50
cmp dword [esp + 0xac], 0x10
jb 0x592a18
mov edx, dword [esp + 0x98]
push edx
call fcn.0059b877
add esp, 4
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x592a22
sub eax, edx
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xc0]
call fcn.004320d0
cmp dword [ebx + 0x110], 0
je 0x592b1b
push 0xffffffffffffffff
lea eax, [ebx + 0xfc]
push 0
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
call fcn.0040b390
push 0xb
push str.trackerid
lea eax, [esp + 0xc0]
mov byte [esp + 0x4f0], 3
call fcn.004320d0
mov ecx, dword [esp + 0x98]
mov edi, 0x10
cmp dword [esp + 0xac], edi
jae 0x592abb
lea ecx, [esp + 0x98]
mov eax, dword [esp + 0xa8]
lea esi, [esp + 0x3c]
call fcn.004b09a0
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov byte [esp + 0x4f0], 4
call fcn.00432230
cmp dword [esp + 0x54], edi
jb 0x592af8
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0059b877
add esp, 4
mov byte [esp + 0x4e8], 0
cmp dword [esp + 0xac], edi
jb 0x592b20
mov edx, dword [esp + 0x98]
push edx
call fcn.0059b877
add esp, 4
jmp 0x592b20
mov edi, 0x10
cmp dword [ebx + 0xdc], 0
je 0x592b89
push 7
push str.event
lea eax, [esp + 0xc0]
mov dword [esp + 0x44], str.completed
mov dword [esp + 0x48], str.started
mov dword [esp + 0x4c], str.stopped
mov dword [esp + 0x50], str.paused
call fcn.004320d0
mov eax, dword [ebx + 0xdc]
mov edx, dword [esp + eax*4 + 0x38]
mov eax, edx
lea esi, [eax + 1]
jmp 0x592b70
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x592b70
sub eax, esi
push eax
push edx
lea eax, [esp + 0xc0]
call fcn.004320d0
cmp byte [esp + 0x1b], 0
je 0x592c1f
push 4
push str.ip
lea eax, [esp + 0xc0]
call fcn.004320d0
mov ecx, dword [ebx + 0x1c0]
cmp dword [ecx + 0x80], edi
mov eax, dword [ecx + 0x7c]
jb 0x592bbd
mov ecx, dword [ecx + 0x6c]
jmp 0x592bc0
add ecx, 0x6c
lea esi, [esp + 0x94]
call fcn.004b09a0
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov byte [esp + 0x4f0], 5
call fcn.00432230
mov byte [esp + 0x4e8], 0
cmp dword [esp + 0xac], edi
jb 0x592c07
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0059b877
add esp, 4
push 4
push str..i2p
lea eax, [esp + 0xc0]
call fcn.004320d0
jmp 0x592d84
mov edx, dword [ebx + 0x194]
cmp byte [edx + 0x23a], 0
jne 0x592d84
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x592c86
cmp dword [ecx + 0xb8], edi
jb 0x592c50
mov ecx, dword [ecx + 0xa4]
jmp 0x592c56
add ecx, 0xa4
lea esi, [esp + 0x3c]
call fcn.004b09a0
push eax
mov ecx, str.ip
lea edi, [esp + 0x98]
mov byte [esp + 0x4ec], 6
call fcn.00442af0
add esp, 4
mov byte [esp + 0x4e8], 7
jmp 0x592cef
cmp byte [edx + 0x29c], 0
je 0x592d1e
lea eax, [esp + 0x94]
push eax
push edx
call fcn.00515b20
mov ecx, eax
call fcn.00564bf0
test al, al
je 0x592d1e
mov edx, dword [ebx + 0x194]
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.00515b20
push eax
lea esi, [esp + 0x40]
call fcn.0049d540
add esp, 4
push eax
mov ecx, str.ip
lea edi, [esp + 0x98]
mov byte [esp + 0x4ec], 8
call fcn.00442af0
add esp, 4
mov byte [esp + 0x4e8], 9
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
call fcn.00432230
lea ecx, [esp + 0x94]
call fcn.0040b130
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4e8], 0
call fcn.0040b130
cmp dword [ebx + 0x134], 0
je 0x592d51
lea eax, [esp + 0xb8]
push eax
mov edx, str.ipv6
call fcn.004417a0
push 0
lea ecx, [ebx + 0x120]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xc0]
call fcn.00432230
cmp dword [ebx + 0x150], 0
je 0x592d84
lea edx, [esp + 0xb8]
push edx
mov edx, str.ipv4
call fcn.004417a0
push 0
lea eax, [ebx + 0x13c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
call fcn.00432230
push 0x430
call fcn.0059b847
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
mov byte [esp + 0x4e8], 0xa
je 0x592ed7
movzx edx, byte [0x65b5ed]
sub esp, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
xor ecx, ecx
push ecx
movzx ecx, byte [0x65b5e9]
mov eax, 0x593160
push eax
push ecx
push edx
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x38], esp
call fcn.00596150
push edi
call fcn.005994a0
add esp, 0x18
lea edi, [esp + 0x4c]
call fcn.00594f00
sub esp, 0x10
mov dword [esp + 0x34], esp
xor ecx, ecx
mov edi, esp
push ecx
mov eax, 0x5932d0
push eax
mov byte [esp + 0x500], 0xb
movzx eax, byte [0x65b5ed]
push eax
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x44], esp
call fcn.00596150
push edi
call fcn.00568550
add esp, 0x14
lea edi, [esp + 0xa4]
call fcn.00594e50
sub esp, 0x10
mov dword [esp + 0x34], esp
mov edi, esp
xor ecx, ecx
push ecx
mov dword [esp + 0x4fc], 0xc
movzx ecx, byte [0x65b5ee]
movzx edx, byte [0x65b5ef]
mov eax, 0x593400
push eax
movzx eax, byte [0x65b5e9]
push ecx
movzx ecx, byte [0x65b5ed]
push edx
push eax
push ecx
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x40], 3
mov dword [esp + 0x50], esp
call fcn.00596150
push edi
call fcn.00594c90
add esp, 0x20
lea edi, [esp + 0x84]
call fcn.00594da0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x98]
mov dword [esp + 0x4ec], 0xd
mov edx, dword [ebx + 0x1b8]
push eax
mov ecx, edi
mov dword [esp + 0x1c], 7
push ecx
mov eax, dword [ebx + 0x1bc]
push edx
push eax
push esi
call fcn.00556160
jmp 0x592ed9
xor eax, eax
lea edx, [ebx + 0x18c]
mov ecx, eax
mov eax, edx
mov dword [esp + 0x4e8], 0x10
call fcn.00572f60
mov dword [esp + 0x4e8], 0xf
xor esi, esi
test byte [esp + 0x14], 4
je 0x592f34
mov eax, dword [esp + 0x74]
and dword [esp + 0x14], 0xfffffffb
cmp eax, esi
je 0x592f34
test al, 1
jne 0x592f30
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
je 0x592f30
lea ecx, [esp + 0x7c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x74], esi
mov dword [esp + 0x4e8], 0xe
test byte [esp + 0x14], 2
je 0x592f7c
mov eax, dword [esp + 0x94]
and dword [esp + 0x14], 0xfffffffd
cmp eax, esi
je 0x592f7c
test al, 1
jne 0x592f75
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
je 0x592f75
lea ecx, [esp + 0x9c]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x94], esi
mov dword [esp + 0x4e8], esi
test byte [esp + 0x14], 1
je 0x592fb3
mov eax, dword [esp + 0x3c]
and dword [esp + 0x14], 0xfffffffe
cmp eax, esi
je 0x592fb3
test al, 1
jne 0x592fb3
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, esi
je 0x592fb3
lea ecx, [esp + 0x44]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
cmp dword [ebx + 0xdc], 3
mov eax, dword [esp + 0x20]
jne 0x592fc5
mov edi, dword [eax + 0x44]
jmp 0x592fc8
mov edi, dword [eax + 0x3c]
cmp byte [eax + 0x1f6], 0
je 0x593013
push esi
push 0x611070
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], esi
mov byte [esp + 0xa0], 0
call fcn.0040b860
mov byte [esp + 0x4e8], 0x11
or dword [esp + 0x14], 8
lea esi, [esp + 0x94]
jmp 0x593016
lea esi, [eax + 0x20]
push 0
mov eax, edi
cdq
push 0xf4240
push edx
push eax
call fcn.005c0590
push edx
push eax
call fcn.004b2860
mov ecx, dword [ebx + 0x1c0]
add esp, 8
push ecx
mov ecx, dword [ebx + 0x1b4]
mov edi, edx
lea edx, [ebx + 0x158]
push edx
xor edx, edx
cmp dword [ebx + 0xdc], 3
push esi
sete dl
push 5
push ecx
mov ecx, dword [ebx + 0x18c]
add edx, 1
push edx
push edi
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00556680
test byte [esp + 0x14], 8
je 0x593091
cmp dword [esp + 0xac], 0x10
jb 0x593091
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0059b877
add esp, 4
mov edx, dword [ebx + 0x78]
mov ecx, dword [edx + 0x24]
mov eax, dword [esp + 0xcc]
add eax, 0x64
add dword [ecx + 0xc70], eax
add ecx, 0xc70
cdq
add dword [ecx + 0x10], eax
adc dword [ecx + 0x14], edx
cmp dword [esp + 0xd0], 0x10
jb 0x5930ce
mov eax, dword [esp + 0xbc]
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x4e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c8]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret