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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62ee3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x4b0]
push esi
push edi
add eax, 4
push eax
lea ecx, [esp + 0x40]
call fcn.0042c6ca
xor eax, eax
mov dword [esp + 0x19c], eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call fcn.00418e40
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x70]
call fcn.004546df
test al, al
je 0x479869
push dword [ebp + 0x28]
mov ecx, dword [ebx + 0x4b0]
call fcn.00445c25
mov eax, dword [0x71c0e4]
mov esi, dword [0x71c0e0]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x698]
mov eax, dword [eax + 0x120]
cmp dword [ebp + 0x18], eax
mov dword [esp + 0x10], esi
jge 0x479890
mov dword [ebp + 0x18], eax
push dword [ebp + 8]
push ebx
call fcn.00482647
mov edi, eax
test edi, edi
je 0x479949
mov al, byte [edi + 0x34]
test al, 4
jne 0x4798b8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5c], 2
jne 0x4798b8
or al, 4
mov byte [edi + 0x34], al
mov al, byte [edi + 0x34]
test al, 8
jne 0x4798cd
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5c], 1
jne 0x4798cd
or al, 8
mov byte [edi + 0x34], al
mov al, byte [edi + 0x34]
and al, 0xfd
or al, 1
mov byte [edi + 0x34], al
mov eax, dword [ebp + 0x18]
cdq
push edx
push eax
lea esi, [esp + 0x30]
mov byte [edi + 0x32], 0
call fcn.0042d51a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
adc eax, dword [esp + 0x1c]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x1c]
cdq
push edx
push eax
call fcn.0042d51a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0x10
add ecx, dword [esp + 0x10]
push 0
adc eax, dword [esp + 0x18]
lea esi, [ebx + 0x4e8]
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
call fcn.004836b4
sub edi, eax
push 0x38
mov eax, edi
cdq
pop ecx
idiv ecx
push ebx
call fcn.0048000c
mov esi, dword [esp + 0x10]
mov byte [ebx + 0x6c6], al
mov edi, dword [esp + 0x14]
push edi
push esi
push ebx
call fcn.00480f15
mov eax, dword [ebp + 0x20]
test eax, eax
jl 0x479962
mov dword [ebx + 0x6b8], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jl 0x47996f
mov dword [ebx + 0x6bc], ecx
test eax, eax
jl 0x479983
test ecx, ecx
jl 0x479983
mov dword [ebx + 0x130], esi
mov dword [ebx + 0x134], edi
mov edi, dword [ebp + 0x14]
push dword [edi + 0xc]
lea esi, [esp + 0x14]
call fcn.00484e85
mov edi, dword [ebp + 0x14]
push dword [edi + 0x10]
lea esi, [esp + 0x64]
call fcn.00484e85
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4799af
cmp eax, dword [esp + 0x60]
je 0x4799b4
call fcn.005b544b
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x64]
je 0x479bdd
mov edi, dword [ebx + 0x4b0]
lea esi, [esp + 0x10]
add edi, 0x614
call fcn.0049297c
add eax, 0x20
push eax
mov eax, edi
call fcn.0045fcbe
test al, al
jne 0x479bb2
and dword [esp + 0x1c], 0
call fcn.005ebf90
mov dword [esp + 0x20], eax
call fcn.0049297c
movzx eax, word [eax + 0x1c]
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.0049297c
lea ecx, [esp + 0x7c]
push ecx
call fcn.0048bd37
add esp, 0xc
mov edi, eax
lea esi, [esp + 0x114]
call fcn.00445e61
mov eax, dword [esp + 0x1c]
neg eax
sbb eax, eax
test eax, fcn.0040234c
je 0x479b66
lea esi, [esp + 0x10]
call fcn.0049297c
mov eax, dword [eax + 0x1c]
cdq
push edx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0043c199
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x48]
movsb byte es:[edi], byte [esi]
call fcn.004028e2
mov byte [esp + 0x19c], 1
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x14]
call fcn.0049297c
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00447ad2
mov byte [esp + 0x19c], 3
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00403762
and dword [esp + 0x2c], 0
sub esp, 0x28
mov eax, esp
mov dword [esp + 0xc0], esp
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0xc4], esp
push ecx
lea ecx, [ebx + 0x90]
push ecx
mov esi, 0x479ebd
mov dword [esp + 0x5c], eax
call fcn.004837e8
mov byte [esp + 0x1cc], 4
push dword [esp + 0x5c]
push esi
lea esi, [esp + 0x48]
call fcn.0049297c
sub esp, 0x14
mov esi, eax
movzx eax, byte [0x71c0fe]
push 5
pop ecx
mov edi, esp
push eax
movzx eax, byte [0x71c0fd]
push eax
mov eax, dword [esp + 0x78]
add esi, 0x20
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [esp + 0x1f4], 3
call fcn.00486901
add esp, 0x30
mov byte [esp + 0x1c4], 5
lea eax, [esp + 0xe0]
push eax
lea ecx, [ebx + 0x1e8]
mov byte [esp + 0x1c8], 3
call fcn.004869a7
mov byte [esp + 0x19c], 0
lea eax, [esp + 0xb8]
push eax
call fcn.0044557a
jmp 0x479bb2
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x114]
call fcn.0042c649
mov ecx, eax
call fcn.004ad497
test al, al
je 0x479b8e
mov ecx, dword [ebp + 0xc]
call fcn.004ad497
test al, al
je 0x479bb2
push 0
push 1
lea esi, [esp + 0x18]
call fcn.0049297c
add eax, 0x20
push eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [ebx + 0xc8]
call fcn.0048d518
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x479bd9
call fcn.005b544b
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x479bcf
call fcn.005b544b
add dword [esp + 0x14], 0x34
jmp 0x479992
mov eax, dword [eax]
jmp 0x479bc1
mov esi, dword [ebx + 0x4b0]
mov edi, 0xc0
add esi, edi
lea eax, [esi + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.0042c6ca
mov byte [esp + 0x19c], 6
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x58]
jb 0x479c28
mov byte [esp + 0x19c], 0
cmp byte [esp + 0x14], 0
je 0x479cf0
mov ecx, dword [esp + 0x10]
call fcn.0042cea5
jmp 0x479cf0
mov eax, dword [esi + 0x54]
shr eax, 4
and al, 1
mov byte [esp + 0x1b], al
mov byte [esp + 0x19c], 0
cmp byte [esp + 0x14], 0
je 0x479c50
mov ecx, dword [esp + 0x10]
call fcn.0042cea5
mov al, byte [esp + 0x1b]
test al, al
je 0x479cf0
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004803d0
mov dword [esp + 0x24], eax
mov byte [esp + 0x19c], 7
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x34
cdq
pop ecx
idiv ecx
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0x60
push eax
push dword [esp + 0x28]
lea eax, [esp + 0xc0]
push eax
call fcn.00473157
mov byte [esp + 0x19c], 8
mov dword [esp + 0xb8], vtable.libtorrent::tracker_reply_alert.0
mov dword [esp + 0xf0], esi
mov byte [esp + 0x19c], 9
mov ecx, dword [ebx + 0x4b0]
add ecx, edi
lea edi, [esp + 0xb8]
call fcn.004a2f3f
mov byte [esp + 0x19c], 7
mov eax, edi
push eax
call fcn.00473db9
mov byte [esp + 0x19c], 0
lea eax, [esp + 0x28]
push eax
call fcn.00419291
mov ecx, dword [ebx + 0x4b0]
or byte [ebx + 0x6ca], 0x80
lea eax, [esp + 0x44]
push eax
add ecx, 0x6b0
call fcn.0042c649
push eax
call fcn.004ad576
mov esi, dword [ebp + 0xc]
pop ecx
test al, al
jne 0x479d20
cmp dword [esi], 0
je 0x479d4e
mov ecx, dword [ebx + 0x4b0]
lea eax, [esp + 0x44]
push eax
add ecx, 0x730
call fcn.0042c649
push eax
call fcn.004ad576
pop ecx
test al, al
jne 0x479e66
cmp dword [esi], 1
jne 0x479e66
mov ecx, dword [ebx + 0x4b0]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
add ecx, 0x730
add edi, 0xbc
call fcn.0042c649
mov ecx, edi
call fcn.004546df
test al, al
je 0x479e66
mov ecx, dword [ebx + 0x4b0]
lea eax, [esp + 0x44]
push eax
add ecx, 0x6b0
call fcn.0042c649
mov ecx, edi
call fcn.004546df
test al, al
je 0x479e66
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5c], 3
je 0x479e66
cmp dword [esi], 0
mov ecx, 0x454bc9
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
sete al
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x30], al
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx]
mov edx, dword [eax]
lea esi, [esp + 0x28]
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x70]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
push ecx
push edx
movsd dword es:[edi], dword [esi]
push ecx
lea eax, [esp + 0x3c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.00486a26
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [eax]
add esp, 0x24
cmp dword [esp + 0x1c], 0
je 0x479e11
cmp dword [esp + 0x1c], eax
je 0x479e16
call fcn.005b544b
cmp dword [esp + 0x20], esi
je 0x479e66
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
mov ecx, dword [ebx + 0x4b0]
jne 0x479e36
lea eax, [esp + 0x70]
add ecx, 0x6b0
jmp 0x479e43
lea eax, [esp + 0x9c]
add ecx, 0x730
push eax
call fcn.0042c649
mov ecx, eax
lea eax, [esp + 0x44]
call fcn.00454bd1
lea eax, [esp + 0x44]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x5c]
mov ecx, ebx
call fcn.00478c21
or dword [esp + 0x19c], 0xffffffff
cmp byte [esp + 0x40], 0
je 0x479e7e
mov ecx, dword [esp + 0x3c]
call fcn.0042cea5
mov ecx, dword [esp + 0x194]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24