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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59e1df
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
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 0x46d766
lea ecx, [eax + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0xb0], edi
cmp eax, edi
jne 0x46d929
test byte [0x63221c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x46d82b
or dword [0x63221c], 1
push 0x632228
mov dword [0x632220], 0x5fd2f0
mov dword [0x632224], edi
mov dword [0x632240], edi
call ebx
mov byte [esp + 0xb0], 2
push 8
mov dword [0x632220], 0x5fd330
call fcn.0048a378
add esp, 4
cmp eax, edi
je 0x46d7da
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46d7dc
xor esi, esi
push 0x632228
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x632224]
inc dword [0x632240]
cmp eax, edi
je 0x46d7ff
push eax
call fcn.0048a131
add esp, 4
dec dword [0x632240]
push 0x632228
mov dword [0x632224], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xb0], 0
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push str.m_curlHttp_is_Null
push str.peerHttpDownloadPeer.cpp
push 0xfd
push 2
push 0x632220
call ecx
add esp, 0x14
test byte [0x6321f0], 1
jne 0x46d90a
or dword [0x6321f0], 1
push 0x6321fc
mov dword [0x6321f4], 0x5fd2f0
mov dword [0x6321f8], edi
mov dword [0x632214], edi
call ebx
mov byte [esp + 0xb0], 4
push 8
mov dword [0x6321f4], 0x5fd310
mov byte [0x632218], 1
call fcn.0048a378
add esp, 4
cmp eax, edi
je 0x46d8b4
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46d8b6
xor esi, esi
push 0x6321fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6321f8]
mov ebx, 1
add dword [0x632214], ebx
cmp eax, edi
je 0x46d8de
push eax
call fcn.0048a131
add esp, 4
sub dword [0x632214], ebx
push 0x6321fc
mov dword [0x6321f8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xb0], 0
mov edx, dword [0x6321f4]
mov eax, dword [edx + 4]
push str.m_curlHttp_is_Null
push 2
push 0x6321f4
call eax
add esp, 0xc
jmp 0x46e121
mov eax, dword [ebx + 8]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
mov byte [esp + 0xb0], 5
cmp eax, edi
je 0x46db15
lea ecx, [eax + 0x5c]
lea esi, [esp + 0x3c]
call fcn.00446450
mov esi, eax
lea edx, [esp + 0x60]
cmp edx, esi
je 0x46d9ca
cmp dword [esp + 0x74], 8
jb 0x46d97d
mov eax, dword [esp + 0x60]
push eax
call fcn.0048a131
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edi
mov word [esp + 0x60], cx
cmp dword [esi + 0x14], 8
jae 0x46d9ae
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x64]
push esi
push eax
call fcn.0048a400
add esp, 0xc
jmp 0x46d9b6
mov ecx, dword [esi]
mov dword [esp + 0x60], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x70], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x74], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esp + 0xb0], 5
cmp dword [esp + 0x50], 8
jb 0x46d9e6
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0048a131
add esp, 4
cmp dword [esp + 0x70], edi
je 0x46db15
cmp dword [ebx + 0x158], edi
jne 0x46db15
push 0xffffffffffffffff
lea ecx, [ebx + 0x148]
push 0
lea eax, [esp + 0x68]
mov dword [esp + 0x40], ecx
call fcn.00401a8e
push 0
lea edi, [esp + 0x80]
mov dword [esp + 0x80], 0
call fcn.00456600
lea eax, [ebx - 0x88]
cdq
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov edx, 0x60a290
mov ecx, edi
mov byte [esp + 0xb0], 8
call fcn.00455b40
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.00455fd0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 7
call fcn.00456430
add ebx, 0xffffff80
push ebx
lea edi, [esp + 0x40]
call fcn.00456710
mov edx, str.full_name
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb0], 9
call fcn.00455b40
mov esi, eax
mov eax, edi
call fcn.00455fd0
mov ecx, edi
mov byte [esp + 0xb0], 7
call fcn.00456430
mov edx, dword [esp + 0x38]
push edx
lea edi, [esp + 0x40]
call fcn.00456710
mov edx, str.server_ip
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb0], 0xa
call fcn.00455b40
mov esi, eax
mov eax, edi
call fcn.00455fd0
mov ecx, edi
mov byte [esp + 0xb0], 7
call fcn.00456430
push 0
push 6
call fcn.0046bf70
push eax
lea edi, [esp + 0x88]
xor ebx, ebx
call fcn.0046e590
mov ecx, edi
mov byte [esp + 0xb0], 5
call fcn.00456430
mov ebx, dword [esp + 0x24]
mov edi, dword [ebp + 8]
lea eax, [edi - 0x12c]
cmp eax, 0x63
ja 0x46dcec
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], cx
mov byte [esp + 0xb0], 0xb
xor edx, edx
push str.Location
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
call fcn.0048aa3a
add esp, 4
mov ecx, str.Location
lea esi, [esp + 0x3c]
call fcn.00401741
mov esi, dword [esp + 0x14]
mov byte [esp + 0xb0], 0xc
cmp dword [esi], 6
jne 0x46dba6
mov ecx, dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
call fcn.00457c90
mov eax, dword [eax]
mov esi, dword [esi + 8]
mov byte [esp + 0x13], 1
cmp eax, dword [esi + 4]
jne 0x46dbab
mov byte [esp + 0x13], 0
mov esi, 8
mov byte [esp + 0xb0], 0xb
cmp dword [esp + 0x50], esi
jb 0x46dbcb
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0048a131
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46dc0d
mov edi, dword [esp + 0x14]
mov ecx, str.Location
call fcn.00455f00
mov ecx, eax
call fcn.00456300
cmp dword [eax + 0x14], esi
jb 0x46dbf0
mov esi, dword [eax]
jmp 0x46dbf2
mov esi, eax
push esi
call fcn.0048aa3a
mov ecx, esi
add esp, 4
lea esi, [esp + 0x7c]
call fcn.00401741
mov esi, 8
xor edi, edi
lea ecx, [ebx + 0x24]
call fcn.004473e0
cmp byte [ebx + 0x111], 0
mov byte [ebx + 0x100], 1
je 0x46dc4d
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 + 0x84]
call fcn.00401a8e
lea eax, [ebx - 0x88]
call fcn.0046e150
jmp 0x46dc5f
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x64]
lea eax, [esp + 0x84]
call fcn.00401a8e
cmp dword [esp + 0x90], esi
jb 0x46dc75
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0048a131
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], dx
cmp dword [esp + 0x74], esi
jb 0x46dca2
mov eax, dword [esp + 0x60]
push eax
call fcn.0048a131
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 8
mov word [esp + 0x60], cx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x46e121
cmp eax, edi
je 0x46e121
lea ecx, [eax - 8]
cmp ecx, edi
je 0x46e121
mov edx, dword [ecx]
jmp 0x46e11b
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 + 0x3c], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
lea ecx, [ebx + 0xd0]
mov edx, 0x609308
mov byte [esp + 0xb0], 0xd
call fcn.00455b40
mov edx, str.code
mov ecx, eax
call fcn.00455b40
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00456960
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.00456430
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 5
call fcn.00456430
cmp edi, 0xc8
jne 0x46debb
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x58], 0
je 0x46debb
test byte [0x63221c], 1
jne 0x46ddd4
or dword [0x63221c], 1
mov byte [esp + 0xb0], 0xe
call fcn.00403203
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xb0], 5
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x46dde8
mov eax, dword [eax]
mov ecx, dword [0x632220]
mov edx, dword [ecx + 8]
push eax
push str._rN_e
push str.peerHttpDownloadPeer.cpp
push 0x134
push 0
push 0x632220
call edx
add esp, 0x18
test byte [0x6321f0], 1
jne 0x46de3f
or dword [0x6321f0], 1
mov byte [esp + 0xb0], 0xf
call fcn.004032de
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov byte [esp + 0xb0], 5
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
cmp dword [eax + 0x14], esi
jb 0x46de4e
mov eax, dword [eax]
push eax
mov eax, dword [0x6321f4]
mov ecx, dword [eax + 4]
push str._rN_e
push 0
push 0x6321f4
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 + 0x74], esi
jb 0x46de8b
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0048a131
add esp, 4
xor edx, edx
lea eax, [esp + 0x18]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], dx
mov dword [esp + 0xb0], 0xffffffff
call fcn.0045d640
jmp 0x46e121
xor eax, eax
push str.Content_Length
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.0048aa3a
add esp, 4
mov ecx, str.Content_Length
lea esi, [esp + 0x3c]
call fcn.00401741
mov esi, dword [esp + 0x14]
mov byte [esp + 0xb0], 0x10
cmp dword [esi], 6
jne 0x46df1e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x40]
call fcn.00457c90
mov eax, dword [eax]
mov esi, dword [esi + 8]
mov byte [esp + 0x13], 1
cmp eax, dword [esi + 4]
jne 0x46df23
mov byte [esp + 0x13], 0
mov byte [esp + 0xb0], 5
cmp dword [esp + 0x50], 8
jb 0x46df3f
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048a131
add esp, 4
cmp byte [esp + 0x13], 0
je 0x46e0c6
mov edi, dword [esp + 0x14]
mov ecx, str.Content_Length
call fcn.00455f00
mov ecx, eax
call fcn.00456300
cmp dword [eax + 0x14], 8
jb 0x46df67
mov eax, dword [eax]
push eax
call fcn.0048af5c
add esp, 4
mov dword [esp + 0x28], edx
test edx, edx
jl 0x46e0c6
jg 0x46df86
test eax, eax
je 0x46e0c6
mov esi, dword [ebx - 8]
test esi, esi
je 0x46e0c6
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 0x46dfc2
test edi, edi
je 0x46e0c6
cmp edi, eax
jne 0x46dfd0
cmp ecx, dword [esp + 0x28]
je 0x46e0c6
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
push eax
lea esi, [esp + 0x40]
call fcn.004023ec
mov byte [esp + 0xb0], 0x11
call fcn.00402d76
cmp dword [ebx + 0x15c], 8
lea esi, [ebx + 0x148]
jb 0x46e002
mov ecx, dword [esi]
jmp 0x46e004
mov ecx, esi
cmp dword [esp + 0x50], 8
mov edx, dword [esp + 0x3c]
jae 0x46e013
lea edx, [esp + 0x3c]
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 0x60a360
push str.peerHttpDownloadPeer.cpp
push 0x142
push 2
push eax
call edx
add esp, 0x2c
call fcn.00402d3b
cmp dword [esi + 0x14], 8
jb 0x46e054
mov esi, dword [esi]
cmp dword [esp + 0x50], 8
mov ecx, dword [esp + 0x3c]
jae 0x46e063
lea ecx, [esp + 0x3c]
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 0x60a360
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 + 0x50], 8
jb 0x46e0af
mov eax, dword [esp + 0x3c]
push eax
call fcn.0048a131
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
cmp dword [esp + 0x74], 8
jb 0x46e0da
mov edx, dword [esp + 0x60]
push edx
call fcn.0048a131
add esp, 4
xor eax, eax
mov word [esp + 0x60], ax
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46e121
test eax, eax
je 0x46e121
add eax, 0xfffffff8
je 0x46e121
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 8