Function at 0x4560bf
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x4835d9
call fcn.00467172
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x88c], ebx
je 0x456510
cmp dword [esi + 0x878], ebx
jne 0x45617a
mov al, 1
call fcn.004371a1
mov dword [esi + 0x880], eax
mov al, 1
call fcn.004371a1
lea edi, [esi + 0x87c]
push edi
push 4
push esi
push 0x455e33
push ebx
push ebx
mov dword [esi + 0x884], eax
call fcn.00463732
add esp, 0x18
cmp dword [edi], ebx
mov dword [esi + 0x878], eax
jne 0x456162
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
je 0x456135
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x880]
mov edi, dword [0x4852f4]
mov dword [esi + 0x88c], ebx
call edi
push dword [esi + 0x884]
mov dword [esi + 0x880], ebx
call edi
mov dword [esi + 0x884], ebx
jmp 0x456510
push eax
call dword [0x485218]
call dword [0x485208]
mov dword [esi + 0x890], eax
jmp 0x456510
push ebx
push dword [esi + 0x884]
call dword [0x485344]
test eax, eax
jne 0x456510
push dword [esi + 0x878]
call dword [0x4852f4]
mov eax, dword [esi + 0x88c]
mov dword [esi + 0x878], ebx
mov ecx, dword [eax + 4]
xor edi, edi
mov dword [esi + 0x9ec], ecx
mov ecx, dword [esi + 0x894]
inc edi
cmp ecx, edi
jne 0x45645e
call dword [0x485208]
sub eax, dword [esi + 0x890]
lea edi, [esi + 0x24]
mov dword [esi + 0x9a4], eax
mov eax, dword [esi + 0x88c]
push dword [eax + 4]
push dword [edi]
push str._s_:_p2s_finish_code___d_r_n
push 0x10
call fcn.0044d8cc
mov ecx, dword [esi + 0x88c]
add esp, 0x10
cmp dword [ecx + 4], ebx
jl 0x456428
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x90]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0041677a
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov edx, eax
or edx, ecx
je 0x4562b9
cmp eax, dword [ebp - 0x20]
jne 0x45623a
cmp ecx, dword [ebp - 0x1c]
je 0x4562b9
cmp dword [esi + 0x3c4], 0x30
mov byte [ebp - 0xd], bl
ja 0x4562ae
mov ecx, esi
call fcn.004569cf
lea ebx, [esi + 0x6c]
push 1
push ebx
call fcn.0044bd99
mov eax, dword [ebx]
pop ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.00401c88
add eax, 0x10
mov dword [edi], eax
call fcn.00437827
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.set_size___I64i_from_p2s_server_r_n
push 0x10
call fcn.0044d8cc
add esp, 0x10
push dword [ebp - 0x1c]
mov dword [esi + 0x3c4], 0x30
push dword [ebp - 0x20]
push esi
call fcn.0045875f
mov ebx, esi
call fcn.00455f98
mov ecx, esi
call fcn.004557b3
xor ebx, ebx
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x45630e
xor eax, eax
jmp 0x456313
push 0x30
pop edi
cmp dword [esi + 0x3c4], edi
mov byte [ebp - 0xd], 1
ja 0x4562e3
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.set_size___I64i_from_p2s_server_r_n
push 0x10
call fcn.0044d8cc
add esp, 0x10
mov dword [esi + 0x3c4], edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
call fcn.0045875f
cmp dword [esi + 0x30], 5
jne 0x4562ae
mov ecx, esi
call fcn.004557b3
test al, al
jne 0x4562ae
xor ebx, ebx
push 5
inc ebx
mov edi, esi
call fcn.00458637
jmp 0x4562ac
mov eax, dword [esi + 0x3c]
sub eax, ecx
push eax
push dword [esi + 0x84]
push dword [esi + 0x80]
push dword [esi + 0x24]
push str._s_:_filesize___I64d__full_hash_length_d_r_n
push 0x10
pop edi
push edi
call fcn.0044d8cc
add esp, 0x18
cmp dword [esi + 0x3c4], 0x30
jbe 0x456346
cmp byte [ebp - 0xd], bl
je 0x4564d2
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0x20
jne 0x4563f9
push ecx
mov dword [ebp - 0x14], edi
add eax, 0xfffffff0
lea ebx, [esi + 0x424]
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.00415a47
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x14]
call fcn.0043d3c6
pop ecx
push 0x10
lea eax, [esi + 0x900]
push ebx
push eax
mov byte [esi + 0x19], 1
call fcn.0045f120
lea edi, [esi + 0x68]
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x4563d8
mov esi, dword [esi + 0x70]
push ecx
sub esi, 0x10
mov eax, esi
mov dword [ebp - 0x1c], esp
mov ebx, esp
call fcn.00415a47
add eax, 0x10
lea esi, [ebp - 0x18]
mov dword [ebx], eax
call fcn.0043b990
pop ecx
and dword [ebp - 4], 0
push dword [eax]
push edi
call fcn.00401ad7
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401160
mov esi, dword [ebp + 8]
push 0
push 4
pop ebx
mov edi, esi
call fcn.00458637
mov ecx, esi
call fcn.004557b3
mov ecx, esi
call fcn.004514a4
xor ebx, ebx
jmp 0x4564d2
cmp byte [esi + 0x19], bl
jne 0x4564d2
mov ecx, dword [esi + 0x30]
push 2
pop eax
cmp ecx, eax
je 0x456415
cmp ecx, 1
jne 0x4564d2
push dword [esi + 0x24]
mov dword [esi + 0x3bc], eax
push str._s_:_no_p2p_fid__choose_P2S_r_n
jmp 0x4564c9
cmp byte [esi + 0x19], bl
jne 0x456453
mov ecx, dword [esi + 0x30]
push 2
pop eax
cmp ecx, eax
je 0x45643c
cmp ecx, 1
jne 0x456453
push dword [edi]
mov dword [esi + 0x3bc], eax
push str._s_:_no_p2p_fid__choose_P2S_r_n
push 0x10
call fcn.0044d8cc
add esp, 0xc
push dword [edi]
push str._s_:_no_hash_array_r_n
push 0x14
jmp 0x4564ca
cmp ecx, 2
jne 0x45646d
push dword [esi + 0x24]
push str._s_:_send_full_hash_done_r_n
jmp 0x4564c9
cmp ecx, 3
jne 0x4564d2
push dword [eax + 4]
push dword [esi + 0x24]
push str._s_:_check_url_done__code_d_r_n
push edi
call fcn.0044d8cc
mov eax, dword [esi + 0x88c]
mov eax, dword [eax + 4]
add esp, 0x10
cmp eax, 0xffffff9b
jne 0x4564b1
push dword [esi + 0x24]
push str._s_:_forbidden_r_n
push edi
call fcn.0044d8cc
add esp, 0xc
or dword [esi + 0x3c0], 0x180
jmp 0x4564d2
cmp eax, ebx
jne 0x4564c1
or dword [esi + 0x3c0], 0x100
jmp 0x4564d2
push dword [esi + 0x24]
push str._s_:_network_error_r_n
push edi
call fcn.0044d8cc
add esp, 0xc
push dword [esi + 0x884]
call dword [0x4852f4]
lea edi, [esi + 0x880]
push dword [edi]
mov dword [esi + 0x884], ebx
call dword [0x4852f4]
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
mov dword [edi], ebx
je 0x456504
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x88c], ebx
mov dword [esi + 0x894], ebx
call fcn.0046724a
ret 4