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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f435a
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x1f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x320]
test eax, eax
mov dword [esp + 0x18], ebx
je 0x4daec9
mov ecx, dword [ebx + 0x324]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x4daec9
mov al, byte [ebx + 0x52c]
test al, 1
je 0x4da2ef
mov dword [ebp + 8], 3
jmp 0x4da320
mov ecx, dword [ebp + 8]
cmp ecx, 3
je 0x4da2ff
test al, 4
je 0x4daec9
test ecx, ecx
jne 0x4da320
mov ecx, ebx
call fcn.00493f90
test al, al
je 0x4da320
mov ecx, ebx
call fcn.00493f40
test al, al
jne 0x4da320
mov dword [ebp + 8], 4
lea eax, [esp + 0xdc]
call fcn.004d05c0
mov dword [esp + 0x1f8], 0
test byte [ebx + 0x545], 0x40
je 0x4da357
mov edx, dword [ebx + 0x2e8]
cmp byte [edx + 0x2b2], 0
mov byte [esp + 0x1d1], 1
jne 0x4da35f
mov byte [esp + 0x1d1], 0
mov ecx, dword [ebx + 0xa8]
mov eax, dword [ecx + 0x140]
mov dword [esp + 0xe0], eax
mov edx, dword [ecx + 0x144]
mov dword [esp + 0xe4], edx
mov eax, dword [ecx + 0x148]
mov dword [esp + 0xe8], eax
mov edx, dword [ecx + 0x14c]
mov dword [esp + 0xec], edx
mov eax, dword [ecx + 0x150]
mov dword [esp + 0xf0], eax
mov eax, dword [ebx + 0x2e8]
mov edx, dword [eax + 0xa14]
mov edi, dword [ebx + 0x4d8]
add eax, 0xa14
mov dword [esp + 0xf4], edx
mov edx, dword [eax + 4]
mov dword [esp + 0xf8], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xfc], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x100], edx
mov eax, dword [eax + 0x10]
mov edx, dword [ebx + 0x14c]
mov dword [esp + 0x104], eax
mov eax, dword [ebx + 0x148]
xor esi, esi
sub eax, edi
mov dword [esp + 0x10c], eax
mov eax, dword [ebx + 0x13c]
sbb edx, esi
mov dword [esp + 0x110], edx
cdq
mov dword [esp + 0x1d4], eax
mov eax, dword [ebx + 0x10c]
mov dword [esp + 0x1d8], edx
cdq
mov dword [esp + 0x1dc], eax
mov eax, dword [ebx + 0x11c]
mov dword [esp + 0x1e0], edx
mov edx, dword [ebx + 0x118]
mov dword [esp + 0x118], eax
xor eax, eax
mov dword [esp + 0x114], edx
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], esi
cmp dword [ecx + 0x94], eax
jg 0x4da46f
or esi, 0xffffffff
or edi, esi
jmp 0x4da487
mov esi, dword [ecx + 0x88]
mov edi, dword [ecx + 0x8c]
push ebx
call fcn.004dc9e0
sub esi, eax
sbb edi, edx
xor eax, eax
mov dword [esp + 0x11c], esi
and esi, edi
cmp esi, 0xffffffff
mov dword [esp + 0x120], edi
jne 0x4da4ae
mov dword [esp + 0x11c], 0x4000
mov dword [esp + 0x120], eax
mov ecx, dword [ebx + 0x2e8]
cmp byte [ecx + 0x22d], 0
jne 0x4da4d1
mov edx, dword [ebx + 0x4dc]
sub dword [esp + 0x10c], edx
sbb dword [esp + 0x110], eax
cmp dword [esp + 0x110], eax
jg 0x4da4f3
jl 0x4da4e5
cmp dword [esp + 0x10c], eax
jae 0x4da4f3
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x138], ecx
mov dword [esp + 0x1c], eax
call fcn.005d95d0
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x2e8]
cmp byte [eax + 0x23a], 0
jne 0x4da6b8
lea esi, [eax + 0xa4c]
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
lea edx, [esp + 0xa4]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov word [esp + 0xa6], ax
mov dword [esp + 0xa8], eax
push edx
lea eax, [esp + 0xc4]
mov ecx, 7
lea edi, [esp + 0xc4]
push eax
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0xac], 2
call fcn.004a9150
add esp, 8
test al, al
jne 0x4da5e6
lea ecx, [esp + 0xc0]
push ecx
lea esi, [esp + 0xa8]
call fcn.004a90b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x3c]
mov eax, esi
call fcn.004a8980
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x188]
mov byte [esp + 0x204], 1
call fcn.0040b390
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1f8], 0
call fcn.0040b130
mov eax, dword [ebx + 0x2e8]
lea esi, [eax + 0xa68]
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
lea edx, [esp + 0xa4]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov word [esp + 0xa6], ax
mov dword [esp + 0xa8], eax
push edx
lea eax, [esp + 0xc4]
mov ecx, 7
lea edi, [esp + 0xc4]
push eax
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0xac], 2
call fcn.004a9150
add esp, 8
test al, al
jne 0x4da6b8
lea ecx, [esp + 0xc0]
push ecx
lea esi, [esp + 0x40]
call fcn.004a90b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xa4]
mov eax, esi
call fcn.004a8980
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x204], 2
call fcn.0040b390
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1f8], 0
call fcn.0040b130
cmp dword [esp + 0x138], 3
jne 0x4da6cf
mov dword [esp + 0x178], 0
jmp 0x4da6e2
mov edx, dword [ebx + 0x2e8]
mov eax, dword [edx + 0x100]
mov dword [esp + 0x178], eax
mov ecx, dword [ebx + 0x2e8]
call fcn.00515c20
mov ecx, dword [ebx + 0x2e8]
mov word [esp + 0x134], ax
mov edx, dword [ecx + 0xa28]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x178], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor edi, edi
mov esi, SysReAllocString
mov dword [esp + 0x28], esi
mov byte [esp + 0x17], 0
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
jmp 0x4da730
mov eax, dword [ebx + 0x320]
test eax, eax
je 0x4da755
mov ecx, dword [ebx + 0x324]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jge 0x4daead
mov eax, dword [ebx + 0x320]
test eax, eax
je 0x4da786
mov ecx, dword [ebx + 0x324]
sub ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4da78b
call fcn.005b8b18
mov edi, dword [ebx + 0x320]
add edi, dword [esp + 0x2c]
lea eax, [ebx + 0x340]
cmp dword [edi + 0x30], 0
mov dword [esp + 0x34], edi
je 0x4da7a8
lea eax, [edi + 0x1c]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x164]
call fcn.0040b390
mov eax, dword [ebx + 0x2e8]
mov cl, byte [eax + 0x1c2]
test cl, cl
je 0x4da7ed
cmp byte [eax + 0x1c1], 0
jne 0x4da7ed
cmp byte [esp + 0x17], 0
je 0x4da7ed
movzx edx, byte [edi + 0x70]
cmp edx, esi
jg 0x4da7ed
cmp esi, 0x7fffffff
jne 0x4dae92
movzx esi, byte [edi + 0x70]
cmp esi, dword [esp + 0x28]
jle 0x4da806
cmp byte [esp + 0x17], 0
je 0x4da806
test cl, cl
je 0x4daead
mov al, byte [edi + 0x72]
and al, 0x7f
mov byte [esp + 0x10], al
jne 0x4da81a
mov dword [esp + 0x28], esi
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00493f40
push eax
mov eax, edi
call fcn.004b41b0
test al, al
jne 0x4da85d
cmp byte [esp + 0x10], al
jne 0x4dae92
add dword [esp + 0x30], 1
add dword [esp + 0x2c], 0x78
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
mov byte [esp + 0x17], 1
jmp 0x4da730
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x148]
call fcn.0040b390
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x138], eax
jne 0x4da8aa
mov al, byte [edi + 0x73]
test al, 0x20
jne 0x4da890
mov dword [esp + 0x138], 2
jmp 0x4da8aa
test al, 0x40
jne 0x4da8aa
mov ecx, ebx
call fcn.00493f40
test al, al
je 0x4da8aa
mov dword [esp + 0x138], 1
mov esi, dword [esp + 0x38]
mov ecx, esi
call fcn.00564dc0
test al, al
jne 0x4da900
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x1b4], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x1b8], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1bc], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x1c0], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], ecx
mov dword [esp + 0x1cc], edx
jmp 0x4da97a
mov eax, dword [ebx + 0x2e8]
add eax, 0xa30
push eax
lea esi, [esp + 0xa8]
call fcn.004a90b0
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x1b8], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x1bc], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1c4], ecx
mov dword [esp + 0x1c8], edx
mov dword [esp + 0x1cc], eax
mov ecx, dword [ebx + 0x2e8]
cmp byte [ecx + 0x23a], 0
je 0x4dab4c
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x144]
push eax
xor eax, eax
mov byte [esp + 0x1c], 0x3a
call fcn.004b2430
push eax
xor ecx, ecx
lea esi, [esp + 0xa8]
lea edx, [esp + 0x140]
call fcn.004a29f0
mov byte [esp + 0x1f8], 3
mov ecx, dword [ebx + 0x2e8]
mov esi, dword [ecx + 0xbb0]
mov eax, dword [esp + 0xb8]
push 4
push str.http
xor ebx, ebx
lea ecx, [esp + 0xac]
call fcn.00437100
test eax, eax
je 0x4daa14
mov eax, dword [esp + 0xb8]
push 5
push str.https
lea ecx, [esp + 0xac]
call fcn.00437100
test eax, eax
jne 0x4daafd
test esi, esi
jne 0x4daafd
push esi
push 0x23c34600
call fcn.004b2860
mov ecx, dword [esp + 0x24]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x20]
adc eax, edx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x2e8]
add esi, 0x380
call fcn.004f4990
test al, al
je 0x4daad2
lea edx, [esp + 0x90]
push edx
mov ecx, edi
call fcn.004e7a70
lea ecx, [esp + 0x13c]
push ecx
push eax
lea edx, [esp + 0x44]
mov bl, 4
push edx
mov byte [esp + 0x204], bl
call fcn.004d3d80
push eax
mov byte [esp + 0x1fc], 5
mov eax, dword [edi + 0x2e8]
add eax, 0x380
push eax
call fcn.004c4090
lea esi, [esp + 0x3c]
mov byte [esp + 0x1f8], bl
call fcn.004d3fc0
mov byte [esp + 0x1f8], 3
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4daad2
mov ecx, eax
or edx, 0xffffffff
add eax, 8
lock xadd dword [eax], edx
jne 0x4daad2
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x1f8], 0
cmp dword [esp + 0xbc], 0x10
jb 0x4dae8e
mov eax, dword [esp + 0xa8]
push eax
call fcn.0059b877
add esp, 4
jmp 0x4dae8e
mov eax, dword [esp + 0xb8]
push 3
push 0x6158b4
xor ebx, ebx
lea ecx, [esp + 0xac]
call fcn.00437100
test eax, eax
je 0x4dacdf
cmp esi, 2
je 0x4dab34
cmp esi, 3
je 0x4dab34
cmp esi, 6
jne 0x4dacdf
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1f8], 0
call fcn.0040b130
mov ebx, dword [esp + 0x18]
add ebx, 0x1c
lea edi, [esp + 0x88]
call fcn.00559a50
mov edx, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0xa0], esp
mov dword [ecx + 4], eax
je 0x4dab81
add eax, 8
mov ecx, 1
lock xadd dword [eax], ecx
sub esp, 0x108
mov byte [esp + 0x308], 9
mov edx, esp
mov dword [esp + 0x18c], esp
push edx
lea edi, [esp + 0x1f0]
call fcn.004daef0
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x1d0]
push eax
mov ecx, esi
mov byte [esp + 0x30c], 0xa
call fcn.004df380
mov byte [esp + 0x308], 0xb
mov eax, dword [esi + 0x2e8]
lea edx, [eax + 0x374]
lea ecx, [eax + 0x858]
push edx
add eax, 0x990
push eax
mov byte [esp + 0x310], 0xc
call fcn.005679f0
cmp dword [esp + 0xd8], 0x10
jb 0x4dac0b
mov eax, dword [esp + 0xc4]
push eax
call fcn.0059b877
add esp, 4
mov byte [esp + 0x1f8], 0
mov esi, dword [esp + 0x8c]
test esi, esi
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
je 0x4dac66
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4dac66
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4dac66
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [esp + 0x34]
or byte [edi + 0x72], 0x80
push 0
push 0x1312d00
call fcn.004b2860
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ecx, ebx
add ecx, eax
mov eax, esi
adc eax, edx
push 0
push 0x989680
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
call fcn.004b2860
add esp, 0x10
mov ecx, ebx
add ecx, eax
mov eax, esi
adc eax, edx
mov dword [edi + 0x68], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x6c], eax
mov esi, dword [ecx + 0x2e8]
add esi, 0x380
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebx
jb 0x4dad87
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4dae67
push 0
push 0x23c34600
call fcn.004b2860
mov ecx, dword [esp + 0x24]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x20]
adc eax, edx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], eax
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0x2e8]
add esi, 0x380
call fcn.004f4990
test al, al
je 0x4daad2
lea ecx, [esp + 0x9c]
push ecx
mov ecx, edi
call fcn.004e7a70
lea edx, [esp + 0x13c]
push edx
push eax
lea eax, [esp + 0x44]
mov bl, 6
push eax
mov byte [esp + 0x204], bl
call fcn.004d3d80
mov byte [esp + 0x1f8], 7
mov ecx, dword [edi + 0x2e8]
push eax
add ecx, 0x380
push ecx
call fcn.004c4090
lea esi, [esp + 0x3c]
mov byte [esp + 0x1f8], bl
call fcn.004d3fc0
mov byte [esp + 0x1f8], 3
mov eax, dword [esp + 0xa0]
jmp 0x4daab9
mov eax, dword [esi + 0x2c]
shr eax, 4
and al, 1
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x10], 0
je 0x4dae67
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x80]
push edx
mov ecx, ebx
call fcn.004e7a70
lea ecx, [esp + 0x13c]
push ecx
push eax
lea edx, [esp + 0x44]
mov byte [esp + 0x200], 0xd
mov esi, dword [esp + 0x140]
push edx
call fcn.004d0c50
mov dword [esp + 0x3c], vtable.libtorrent::tracker_announce_alert.0
mov dword [esp + 0x74], esi
mov byte [esp + 0x1f8], 0xe
mov ecx, dword [ebx + 0x2e8]
lea eax, [esp + 0x3c]
push eax
add ecx, 0x380
push ecx
call fcn.004c4090
mov byte [esp + 0x1f8], 0xd
cmp dword [esp + 0x6c], 0x10
jb 0x4dae20
mov edx, dword [esp + 0x58]
push edx
call fcn.0059b877
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.004c2120
mov byte [esp + 0x1f8], 0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4dae67
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4dae67
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test byte [edi + 0x72], 0x7f
mov byte [esp + 0x17], 1
jne 0x4dae8e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x2e8]
cmp byte [eax + 0x1c1], 0
jne 0x4dae8e
cmp byte [eax + 0x1c2], 0
je 0x4daea9
mov ebx, dword [esp + 0x18]
add dword [esp + 0x30], 1
add dword [esp + 0x2c], 0x78
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
jmp 0x4da730
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebx
call fcn.004e9720
lea esi, [esp + 0xdc]
call fcn.004d0780
mov ecx, dword [esp + 0x1f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.005b88a9
mov esp, ebp
pop ebp
ret 8