Function at 0x453406
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x18
mov eax, 0x4801eb
call fcn.004642f2
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x88c], ebx
je 0x453857
cmp dword [esi + 0x878], ebx
jne 0x4534c1
mov al, 1
call fcn.0043451b
mov dword [esi + 0x880], eax
mov al, 1
call fcn.0043451b
lea edi, [esi + 0x87c]
push edi
push 4
push esi
push 0x45317a
push ebx
push ebx
mov dword [esi + 0x884], eax
call fcn.004607d2
add esp, 0x18
cmp dword [edi], ebx
mov dword [esi + 0x878], eax
jne 0x4534a9
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
je 0x45347c
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [esi + 0x880]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x88c], ebx
call edi
push dword [esi + 0x884]
mov dword [esi + 0x880], ebx
call edi
mov dword [esi + 0x884], ebx
jmp 0x453857
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x890], eax
jmp 0x453857
push ebx
push dword [esi + 0x884]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x453857
push dword [esi + 0x878]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x4537a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
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.0044aa6d
mov ecx, dword [esi + 0x88c]
add esp, 0x10
cmp dword [ecx + 4], ebx
jl 0x45376f
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.0041390a
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x84]
mov edx, eax
or edx, ecx
je 0x453600
cmp eax, dword [ebp - 0x20]
jne 0x453581
cmp ecx, dword [ebp - 0x1c]
je 0x453600
cmp dword [esi + 0x3c4], 0x30
mov byte [ebp - 0xd], bl
ja 0x4535f5
mov ecx, esi
call fcn.00453d16
lea ebx, [esi + 0x6c]
push 1
push ebx
call fcn.00448be7
mov eax, dword [ebx]
pop ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.00401ad5
add eax, 0x10
mov dword [edi], eax
call fcn.00434ba1
pop ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.set_size___I64i_from_p2s_server_r_n
push 0x10
call fcn.0044aa6d
add esp, 0x10
push dword [ebp - 0x1c]
mov dword [esi + 0x3c4], 0x30
push dword [ebp - 0x20]
push esi
call fcn.00455aa6
mov ebx, esi
call fcn.004532df
mov ecx, esi
call fcn.00452afa
xor ebx, ebx
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x453655
xor eax, eax
jmp 0x45365a
push 0x30
pop edi
cmp dword [esi + 0x3c4], edi
mov byte [ebp - 0xd], 1
ja 0x45362a
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str.set_size___I64i_from_p2s_server_r_n
push 0x10
call fcn.0044aa6d
add esp, 0x10
mov dword [esi + 0x3c4], edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
call fcn.00455aa6
cmp dword [esi + 0x30], 5
jne 0x4535f5
mov ecx, esi
call fcn.00452afa
test al, al
jne 0x4535f5
xor ebx, ebx
push 5
inc ebx
mov edi, esi
call fcn.0045597e
jmp 0x4535f3
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.0044aa6d
add esp, 0x18
cmp dword [esi + 0x3c4], 0x30
jbe 0x45368d
cmp byte [ebp - 0xd], bl
je 0x453819
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0x20
jne 0x453740
push ecx
mov dword [ebp - 0x14], edi
add eax, 0xfffffff0
lea ebx, [esi + 0x424]
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.00412bd7
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x14]
call fcn.0043a7c7
pop ecx
push 0x10
lea eax, [esi + 0x900]
push ebx
push eax
mov byte [esi + 0x19], 1
call fcn.0045c2a0
lea edi, [esi + 0x68]
mov eax, dword [edi]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x45371f
mov esi, dword [esi + 0x70]
push ecx
sub esi, 0x10
mov eax, esi
mov dword [ebp - 0x1c], esp
mov ebx, esp
call fcn.00412bd7
add eax, 0x10
lea esi, [ebp - 0x18]
mov dword [ebx], eax
call fcn.00438d91
pop ecx
and dword [ebp - 4], 0
push dword [eax]
push edi
call fcn.00401965
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401144
mov esi, dword [ebp + 8]
push 0
push 4
pop ebx
mov edi, esi
call fcn.0045597e
mov ecx, esi
call fcn.00452afa
mov ecx, esi
call fcn.0044e640
xor ebx, ebx
jmp 0x453819
cmp byte [esi + 0x19], bl
jne 0x453819
mov ecx, dword [esi + 0x30]
push 2
pop eax
cmp ecx, eax
je 0x45375c
cmp ecx, 1
jne 0x453819
push dword [esi + 0x24]
mov dword [esi + 0x3bc], eax
push str._s_:_no_p2p_fid__choose_P2S_r_n
jmp 0x453810
cmp byte [esi + 0x19], bl
jne 0x45379a
mov ecx, dword [esi + 0x30]
push 2
pop eax
cmp ecx, eax
je 0x453783
cmp ecx, 1
jne 0x45379a
push dword [edi]
mov dword [esi + 0x3bc], eax
push str._s_:_no_p2p_fid__choose_P2S_r_n
push 0x10
call fcn.0044aa6d
add esp, 0xc
push dword [edi]
push str._s_:_no_hash_array_r_n
push 0x14
jmp 0x453811
cmp ecx, 2
jne 0x4537b4
push dword [esi + 0x24]
push str._s_:_send_full_hash_done_r_n
jmp 0x453810
cmp ecx, 3
jne 0x453819
push dword [eax + 4]
push dword [esi + 0x24]
push str._s_:_check_url_done__code_d_r_n
push edi
call fcn.0044aa6d
mov eax, dword [esi + 0x88c]
mov eax, dword [eax + 4]
add esp, 0x10
cmp eax, 0xffffff9b
jne 0x4537f8
push dword [esi + 0x24]
push str._s_:_forbidden_r_n
push edi
call fcn.0044aa6d
add esp, 0xc
or dword [esi + 0x3c0], 0x180
jmp 0x453819
cmp eax, ebx
jne 0x453808
or dword [esi + 0x3c0], 0x100
jmp 0x453819
push dword [esi + 0x24]
push str._s_:_network_error_r_n
push edi
call fcn.0044aa6d
add esp, 0xc
push dword [esi + 0x884]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x880]
push dword [edi]
mov dword [esi + 0x884], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x88c]
cmp ecx, ebx
mov dword [edi], ebx
je 0x45384b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x88c], ebx
mov dword [esi + 0x894], ebx
call fcn.004643ca
ret 4