Function at 0x455cb2
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x482f15
call fcn.00466b02
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x88c], ebx
je 0x456103
cmp dword [esi + 0x878], ebx
jne 0x455d6d
mov al, 1
call fcn.00436e7f
mov dword [esi + 0x880], eax
mov al, 1
call fcn.00436e7f
lea edi, [esi + 0x87c]
push edi
push 4
push esi
push 0x455a26
push ebx
push ebx
mov dword [esi + 0x884], eax
call fcn.004630c2
add esp, 0x18
cmp dword [edi], ebx
mov dword [esi + 0x878], eax
jne 0x455d55
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
je 0x455d28
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x880]
mov edi, dword [0x4842f4]
mov dword [esi + 0x88c], ebx
call edi
push dword [esi + 0x884]
mov dword [esi + 0x880], ebx
call edi
mov dword [esi + 0x884], ebx
jmp 0x456103
push eax
call dword [0x484218]
call dword [0x484208]
mov dword [esi + 0x890], eax
jmp 0x456103
push ebx
push dword [esi + 0x884]
call dword [0x484344]
test eax, eax
jne 0x456103
push dword [esi + 0x878]
call dword [0x4842f4]
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 0x456051
call dword [0x484208]
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.0044d46c
mov ecx, dword [esi + 0x88c]
add esp, 0x10
cmp dword [ecx + 4], ebx
jl 0x45601b
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.00416019
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov edx, eax
or edx, ecx
je 0x455eac
cmp eax, dword [ebp - 0x20]
jne 0x455e2d
cmp ecx, dword [ebp - 0x1c]
je 0x455eac
cmp dword [esi + 0x3c4], 0x30
mov byte [ebp - 0xd], bl
ja 0x455ea1
mov ecx, esi
call fcn.004565c2
lea ebx, [esi + 0x6c]
push 1
push ebx
call fcn.0044b91b
mov eax, dword [ebx]
pop ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.00401c3f
add eax, 0x10
mov dword [edi], eax
call fcn.0043751b
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.set_size___I64i_from_p2s_server_r_n
push 0x10
call fcn.0044d46c
add esp, 0x10
push dword [ebp - 0x1c]
mov dword [esi + 0x3c4], 0x30
push dword [ebp - 0x20]
push esi
call fcn.00458352
mov ebx, esi
call fcn.00455b8b
mov ecx, esi
call fcn.004553a6
xor ebx, ebx
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x455f01
xor eax, eax
jmp 0x455f06
push 0x30
pop edi
cmp dword [esi + 0x3c4], edi
mov byte [ebp - 0xd], 1
ja 0x455ed6
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.set_size___I64i_from_p2s_server_r_n
push 0x10
call fcn.0044d46c
add esp, 0x10
mov dword [esi + 0x3c4], edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
call fcn.00458352
cmp dword [esi + 0x30], 5
jne 0x455ea1
mov ecx, esi
call fcn.004553a6
test al, al
jne 0x455ea1
xor ebx, ebx
push 5
inc ebx
mov edi, esi
call fcn.0045822a
jmp 0x455e9f
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.0044d46c
add esp, 0x18
cmp dword [esi + 0x3c4], 0x30
jbe 0x455f39
cmp byte [ebp - 0xd], bl
je 0x4560c5
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0x20
jne 0x455fec
push ecx
mov dword [ebp - 0x14], edi
add eax, 0xfffffff0
lea ebx, [esi + 0x424]
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.004152e6
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x14]
call fcn.0043d0a4
pop ecx
push 0x10
lea eax, [esi + 0x900]
push ebx
push eax
mov byte [esi + 0x19], 1
call fcn.0045eab0
lea edi, [esi + 0x68]
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x455fcb
mov esi, dword [esi + 0x70]
push ecx
sub esi, 0x10
mov eax, esi
mov dword [ebp - 0x1c], esp
mov ebx, esp
call fcn.004152e6
add eax, 0x10
lea esi, [ebp - 0x18]
mov dword [ebx], eax
call fcn.0043b66e
pop ecx
and dword [ebp - 4], 0
push dword [eax]
push edi
call fcn.00401a98
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.0045822a
mov ecx, esi
call fcn.004553a6
mov ecx, esi
call fcn.00451073
xor ebx, ebx
jmp 0x4560c5
cmp byte [esi + 0x19], bl
jne 0x4560c5
mov ecx, dword [esi + 0x30]
push 2
pop eax
cmp ecx, eax
je 0x456008
cmp ecx, 1
jne 0x4560c5
push dword [esi + 0x24]
mov dword [esi + 0x3bc], eax
push str._s_:_no_p2p_fid__choose_P2S_r_n
jmp 0x4560bc
cmp byte [esi + 0x19], bl
jne 0x456046
mov ecx, dword [esi + 0x30]
push 2
pop eax
cmp ecx, eax
je 0x45602f
cmp ecx, 1
jne 0x456046
push dword [edi]
mov dword [esi + 0x3bc], eax
push str._s_:_no_p2p_fid__choose_P2S_r_n
push 0x10
call fcn.0044d46c
add esp, 0xc
push dword [edi]
push str._s_:_no_hash_array_r_n
push 0x14
jmp 0x4560bd
cmp ecx, 2
jne 0x456060
push dword [esi + 0x24]
push str._s_:_send_full_hash_done_r_n
jmp 0x4560bc
cmp ecx, 3
jne 0x4560c5
push dword [eax + 4]
push dword [esi + 0x24]
push str._s_:_check_url_done__code_d_r_n
push edi
call fcn.0044d46c
mov eax, dword [esi + 0x88c]
mov eax, dword [eax + 4]
add esp, 0x10
cmp eax, 0xffffff9b
jne 0x4560a4
push dword [esi + 0x24]
push str._s_:_forbidden_r_n
push edi
call fcn.0044d46c
add esp, 0xc
or dword [esi + 0x3c0], 0x180
jmp 0x4560c5
cmp eax, ebx
jne 0x4560b4
or dword [esi + 0x3c0], 0x100
jmp 0x4560c5
push dword [esi + 0x24]
push str._s_:_network_error_r_n
push edi
call fcn.0044d46c
add esp, 0xc
push dword [esi + 0x884]
call dword [0x4842f4]
lea edi, [esi + 0x880]
push dword [edi]
mov dword [esi + 0x884], ebx
call dword [0x4842f4]
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
mov dword [edi], ebx
je 0x4560f7
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x88c], ebx
mov dword [esi + 0x894], ebx
call fcn.00466bda
ret 4