Function at 0x46e6a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a00bf
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x46e706
lea ecx, [eax + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0xa8], edi
cmp eax, edi
jne 0x46e8c9
test byte [0x6353fc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x46e7cb
or dword [0x6353fc], 1
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], edi
mov dword [0x635420], edi
call ebx
mov byte [esp + 0xa8], 2
push 8
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, edi
je 0x46e77a
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46e77c
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
cmp eax, edi
je 0x46e79f
push eax
call fcn.0048bcc1
add esp, 4
dec dword [0x635420]
push 0x635408
mov dword [0x635404], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0xa8], 0
mov eax, dword [0x635400]
mov ecx, dword [eax + 8]
push str.m_curlHttp_is_Null
push str.peerHttpDownloadPeer.cpp
push 0xfd
push 2
push 0x635400
call ecx
add esp, 0x14
test byte [0x6353d0], 1
jne 0x46e8aa
or dword [0x6353d0], 1
push 0x6353dc
mov dword [0x6353d4], 0x5ff3e8
mov dword [0x6353d8], edi
mov dword [0x6353f4], edi
call ebx
mov byte [esp + 0xa8], 4
push 8
mov dword [0x6353d4], 0x5ff408
mov byte [0x6353f8], 1
call fcn.0048bf08
add esp, 4
cmp eax, edi
je 0x46e854
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46e856
xor esi, esi
push 0x6353dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6353d8]
mov ebx, 1
add dword [0x6353f4], ebx
cmp eax, edi
je 0x46e87e
push eax
call fcn.0048bcc1
add esp, 4
sub dword [0x6353f4], ebx
push 0x6353dc
mov dword [0x6353d8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0xa8], 0
mov edx, dword [0x6353d4]
mov eax, dword [edx + 4]
push str.m_curlHttp_is_Null
push 2
push 0x6353d4
call eax
add esp, 0xc
jmp 0x46f0bb
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], cx
mov byte [esp + 0xa8], 5
cmp eax, edi
je 0x46eab5
lea ecx, [eax + 0x5c]
lea esi, [esp + 0x34]
call fcn.004454f0
mov esi, eax
lea edx, [esp + 0x58]
cmp edx, esi
je 0x46e973
cmp dword [esp + 0x6c], 8
jb 0x46e91d
mov eax, dword [esp + 0x58]
push eax
call fcn.0048bcc1
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], cx
cmp dword [esi + 0x14], 8
jae 0x46e94e
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.0048bf90
add esp, 0xc
jmp 0x46e956
mov ecx, dword [esi]
mov dword [esp + 0x58], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x6c], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
mov byte [esp + 0xa8], 5
cmp dword [esp + 0x48], 8
jb 0x46e98f
mov edx, dword [esp + 0x34]
push edx
call fcn.0048bcc1
add esp, 4
cmp dword [esp + 0x68], edi
je 0x46eab5
cmp dword [ebx + 0x158], edi
jne 0x46eab5
push 0xffffffffffffffff
lea esi, [ebx + 0x148]
push 0
lea eax, [esp + 0x60]
mov ecx, esi
call fcn.00401b81
push 0
lea edi, [esp + 0x78]
mov dword [esp + 0x78], 0
call fcn.00455d30
lea eax, [ebx - 0x88]
cdq
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea eax, [esp + 0x34]
push eax
mov edx, 0x60c578
mov ecx, edi
mov byte [esp + 0xac], 8
call fcn.00455200
mov ecx, eax
call fcn.00455700
lea ecx, [esp + 0x34]
mov byte [esp + 0xa8], 7
call fcn.00455b60
add ebx, 0xffffff80
push ebx
lea edi, [esp + 0x38]
call fcn.00455e40
mov ecx, edi
push ecx
mov edx, str.full_name
lea ecx, [esp + 0x78]
mov byte [esp + 0xac], 9
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0xa8], 7
call fcn.00455b60
push esi
lea edi, [esp + 0x38]
call fcn.00455e40
mov edx, edi
push edx
mov edx, str.server_ip
lea ecx, [esp + 0x78]
mov byte [esp + 0xac], 0xa
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0xa8], 7
call fcn.00455b60
push 0
push 6
call fcn.0046cf70
push eax
lea edi, [esp + 0x80]
xor ebx, ebx
call fcn.0046f530
mov ecx, edi
mov byte [esp + 0xa8], 5
call fcn.00455b60
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
lea eax, [edi - 0x12c]
cmp eax, 0x63
ja 0x46ec86
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], edi
mov word [esp + 0x74], cx
mov byte [esp + 0xa8], 0xb
xor edx, edx
push str.Location
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
mov word [esp + 0x38], dx
call fcn.0048c5ca
add esp, 4
mov ecx, str.Location
lea esi, [esp + 0x34]
call fcn.00401834
mov esi, dword [esp + 0x14]
mov byte [esp + 0xa8], 0xc
cmp dword [esi], 6
jne 0x46eb46
mov ecx, dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
call fcn.00457380
mov eax, dword [eax]
mov esi, dword [esi + 8]
mov byte [esp + 0x13], 1
cmp eax, dword [esi + 4]
jne 0x46eb4b
mov byte [esp + 0x13], 0
mov esi, 8
mov byte [esp + 0xa8], 0xb
cmp dword [esp + 0x48], esi
jb 0x46eb6b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0048bcc1
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46ebad
mov edi, dword [esp + 0x14]
mov ecx, str.Location
call fcn.00455630
mov ecx, eax
call fcn.00455a30
cmp dword [eax + 0x14], esi
jb 0x46eb90
mov esi, dword [eax]
jmp 0x46eb92
mov esi, eax
push esi
call fcn.0048c5ca
mov ecx, esi
add esp, 4
lea esi, [esp + 0x74]
call fcn.00401834
mov esi, 8
xor edi, edi
lea ecx, [ebx + 0x24]
call fcn.00446560
cmp byte [ebx + 0x111], 0
mov byte [ebx + 0x100], 1
je 0x46ebea
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x64]
lea eax, [esp + 0x7c]
call fcn.00401b81
lea eax, [ebx - 0x88]
call fcn.0046f0f0
jmp 0x46ebf9
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x64]
lea eax, [esp + 0x7c]
call fcn.00401b81
cmp dword [esp + 0x88], esi
jb 0x46ec0f
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0048bcc1
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
mov word [esp + 0x74], dx
cmp dword [esp + 0x6c], esi
jb 0x46ec3c
mov eax, dword [esp + 0x58]
push eax
call fcn.0048bcc1
add esp, 4
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 8
mov word [esp + 0x58], cx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x46f0bb
cmp eax, edi
je 0x46f0bb
lea ecx, [eax - 8]
cmp ecx, edi
je 0x46f0bb
mov edx, dword [ecx]
jmp 0x46f0b5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebx - 0x38], eax
call esi
mov dword [ebx + 0xf8], eax
mov eax, edi
cdq
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea ecx, [ebx + 0xd0]
mov edx, 0x60b280
mov byte [esp + 0xa8], 0xd
call fcn.00455200
mov edx, str.code
mov ecx, eax
call fcn.00455200
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00456090
mov eax, dword [esi]
mov edx, dword [esp + 0x24]
mov dword [esi], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x24]
mov dword [esi + 0xc], edx
mov dword [esp + 0x2c], eax
call fcn.00455b60
lea ecx, [esp + 0x34]
mov byte [esp + 0xa8], 5
call fcn.00455b60
cmp edi, 0xc8
jne 0x46ee55
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x58], 0
je 0x46ee55
test byte [0x6353fc], 1
jne 0x46ed6e
or dword [0x6353fc], 1
mov byte [esp + 0xa8], 0xe
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0xa8], 5
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x46ed82
mov eax, dword [eax]
mov ecx, dword [0x635400]
mov edx, dword [ecx + 8]
push eax
push str._rN_e
push str.peerHttpDownloadPeer.cpp
push 0x134
push 0
push 0x635400
call edx
add esp, 0x18
test byte [0x6353d0], 1
jne 0x46edd9
or dword [0x6353d0], 1
mov byte [esp + 0xa8], 0xf
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0xa8], 5
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
cmp dword [eax + 0x14], esi
jb 0x46ede8
mov eax, dword [eax]
push eax
mov eax, dword [0x6353d4]
mov ecx, dword [eax + 4]
push str._rN_e
push 0
push 0x6353d4
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
add esp, 0x10
push 0x7d8
push 4
mov ecx, ebx
call eax
cmp dword [esp + 0x6c], esi
jb 0x46ee25
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0048bcc1
add esp, 4
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], dx
mov dword [esp + 0xa8], 0xffffffff
call fcn.0046b580
jmp 0x46f0bb
xor eax, eax
push str.Content_Length
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.0048c5ca
add esp, 4
mov ecx, str.Content_Length
lea esi, [esp + 0x34]
call fcn.00401834
mov esi, dword [esp + 0x14]
mov byte [esp + 0xa8], 0x10
cmp dword [esi], 6
jne 0x46eeb8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x38]
call fcn.00457380
mov eax, dword [eax]
mov esi, dword [esi + 8]
mov byte [esp + 0x13], 1
cmp eax, dword [esi + 4]
jne 0x46eebd
mov byte [esp + 0x13], 0
mov byte [esp + 0xa8], 5
cmp dword [esp + 0x48], 8
jb 0x46eed9
mov edx, dword [esp + 0x34]
push edx
call fcn.0048bcc1
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46f060
mov edi, dword [esp + 0x14]
mov ecx, str.Content_Length
call fcn.00455630
mov ecx, eax
call fcn.00455a30
cmp dword [eax + 0x14], 8
jb 0x46ef01
mov eax, dword [eax]
push eax
call fcn.0048caec
add esp, 4
mov dword [esp + 0x28], edx
test edx, edx
jl 0x46f060
jg 0x46ef20
test eax, eax
je 0x46f060
mov esi, dword [ebx - 8]
test esi, esi
je 0x46f060
mov dword [ebx + 0x10c], edx
mov dword [ebx + 0x108], eax
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
xor edx, edx
sub edi, dword [esi + 0x10]
sbb ecx, edx
sub edi, dword [esi]
sbb ecx, dword [esi + 4]
add edi, 1
adc ecx, edx
mov dword [esp + 0x20], ecx
jne 0x46ef5c
test edi, edi
je 0x46f060
cmp edi, eax
jne 0x46ef6a
cmp ecx, dword [esp + 0x28]
je 0x46f060
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
push eax
lea esi, [esp + 0x38]
call fcn.004024df
mov byte [esp + 0xa8], 0x11
call fcn.00402e69
cmp dword [ebx + 0x15c], 8
lea esi, [ebx + 0x148]
jb 0x46ef9c
mov ecx, dword [esi]
jmp 0x46ef9e
mov ecx, esi
cmp dword [esp + 0x48], 8
mov edx, dword [esp + 0x34]
jae 0x46efad
lea edx, [esp + 0x34]
push ecx
mov ecx, edx
mov edx, dword [eax]
push ecx
mov ecx, dword [ebx + 0x10c]
mov edx, dword [edx + 8]
push ecx
mov ecx, dword [ebx + 0x108]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push edi
push 0x60c648
push str.peerHttpDownloadPeer.cpp
push 0x142
push 2
push eax
call edx
add esp, 0x2c
call fcn.00402e2e
cmp dword [esi + 0x14], 8
jb 0x46efee
mov esi, dword [esi]
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0x46effd
lea ecx, [esp + 0x34]
mov edx, dword [eax]
mov edx, dword [edx + 4]
push esi
push ecx
mov ecx, dword [ebx + 0x10c]
push ecx
mov ecx, dword [ebx + 0x108]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push edi
push 0x60c648
push 2
push eax
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
add esp, 0x24
push 0x7d9
push 3
mov ecx, ebx
call edx
cmp dword [esp + 0x48], 8
jb 0x46f049
mov eax, dword [esp + 0x34]
push eax
call fcn.0048bcc1
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
cmp dword [esp + 0x6c], 8
jb 0x46f074
mov edx, dword [esp + 0x58]
push edx
call fcn.0048bcc1
add esp, 4
xor eax, eax
mov word [esp + 0x58], ax
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46f0bb
test eax, eax
je 0x46f0bb
add eax, 0xfffffff8
je 0x46f0bb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 8