Function at 0x46cc20
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f58c
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 8]
xor edi, edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
cmp eax, edi
je 0x46cc84
lea ecx, [eax + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x80], edi
cmp eax, edi
jne 0x46ce5b
test byte [0x63221c], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x46cd49
or dword [0x63221c], 1
push 0x632228
mov dword [0x632220], 0x5fd2f0
mov dword [0x632224], edi
mov dword [0x632240], edi
call ebx
mov byte [esp + 0x80], 2
push 8
mov dword [0x632220], 0x5fd330
call fcn.0048a378
add esp, 4
cmp eax, edi
je 0x46ccf8
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46ccfa
xor esi, esi
push 0x632228
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x632224]
inc dword [0x632240]
cmp eax, edi
je 0x46cd1d
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 + 0x80], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x632220]
push eax
mov eax, dword [edx + 8]
push ecx
push str.m_curlHttp_is_Null_et:_d_ec:_d
push str.peerHttpDownloadPeer.cpp
push 0x9a
push 2
push 0x632220
call eax
add esp, 0x1c
test byte [0x6321f0], 1
jne 0x46ce33
or dword [0x6321f0], 1
push 0x6321fc
mov dword [0x6321f4], 0x5fd2f0
mov dword [0x6321f8], edi
mov dword [0x632214], edi
call ebx
mov byte [esp + 0x80], 4
push 8
mov dword [0x6321f4], 0x5fd310
mov byte [0x632218], 1
call fcn.0048a378
add esp, 4
cmp eax, edi
je 0x46cddd
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46cddf
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 0x46ce07
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 + 0x80], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [0x6321f4]
push ecx
mov ecx, dword [eax + 4]
push edx
push str.m_curlHttp_is_Null_et:_d_ec:_d
push 2
push 0x6321f4
call ecx
add esp, 0x14
jmp 0x46d654
mov ecx, dword [ebx + 8]
lea ecx, [ecx + 0x5c]
lea esi, [esp + 0x54]
call fcn.00446450
mov byte [esp + 0x80], 5
test byte [0x63221c], 1
jne 0x46cf26
or dword [0x63221c], 1
push 0x632228
mov dword [0x632220], 0x5fd2f0
mov dword [0x632224], edi
mov dword [0x632240], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x80], 7
push 8
mov dword [0x632220], 0x5fd330
call fcn.0048a378
add esp, 4
cmp eax, edi
je 0x46ced5
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46ced7
xor esi, esi
push 0x632228
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x632224]
inc dword [0x632240]
cmp eax, edi
je 0x46cefa
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 + 0x80], 5
lea esi, [ebx + 0x12c]
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x46cf38
mov esi, dword [esi]
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x68], eax
jae 0x46cf46
lea edi, [esp + 0x54]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46cf56
mov eax, dword [eax]
mov ecx, dword [0x632220]
mov edx, dword [ecx + 8]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
push eax
push esi
push edi
push str.HttpPeerDone__d__d__s__s__s
push str.peerHttpDownloadPeer.cpp
push 0xa1
push 0
push 0x632220
call edx
add esp, 0x28
test byte [0x6321f0], 1
jne 0x46d04d
or dword [0x6321f0], 1
xor eax, eax
push 0x6321fc
mov dword [0x6321f4], 0x5fd2f0
mov dword [0x6321f8], eax
mov dword [0x632214], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x80], 9
push 8
mov dword [0x6321f4], 0x5fd310
mov byte [0x632218], 1
call fcn.0048a378
add esp, 4
test eax, eax
je 0x46cff3
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov dword [esp + 0x48], eax
jmp 0x46cffb
mov dword [esp + 0x48], 0
push 0x6321fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6321f8]
inc dword [0x632214]
test eax, eax
je 0x46d01e
push eax
call fcn.0048a131
add esp, 4
mov eax, dword [esp + 0x48]
dec dword [0x632214]
push 0x6321fc
mov dword [0x6321f8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov byte [esp + 0x80], 5
lea eax, [ebx + 0x12c]
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x46d065
mov edx, dword [eax]
mov dword [esp + 0x48], edx
jmp 0x46d069
mov dword [esp + 0x48], eax
cmp dword [esp + 0x68], ecx
jb 0x46d079
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
jmp 0x46d081
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], ecx
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46d091
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [0x6321f4]
mov ecx, dword [eax + 4]
push esi
push edi
push str.HttpPeerDone__d__d__s__s__s
push 0
push 0x6321f4
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
add esp, 0x20
mov ecx, ebx
call eax
cmp edi, 5
jne 0x46d165
mov eax, esi
cdq
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
lea ecx, [ebx + 0xd0]
mov edx, str.curl
mov byte [esp + 0x80], 0xa
call fcn.00455b40
mov edx, str.code
mov ecx, eax
call fcn.00455b40
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00456960
mov eax, dword [esi]
mov edx, dword [esp + 0x34]
mov dword [esi], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x34]
mov dword [esi + 0xc], edx
mov dword [esp + 0x3c], eax
call fcn.00456430
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 5
call fcn.00456430
mov ecx, ebx
call fcn.004618f0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov edi, edx
mov esi, eax
lea ecx, [ebx + 0xd0]
call fcn.00456430
cmp edi, 5
jne 0x46d1d8
test esi, esi
jne 0x46d1e5
xor al, al
mov ecx, dword [ebx + 0xc8]
cmp ecx, dword [ebx + 0xe0]
ja 0x46d4c1
test al, al
je 0x46d4c1
test byte [0x63221c], 1
jne 0x46d1c7
or dword [0x63221c], 1
mov byte [esp + 0x80], 0xb
call fcn.00403203
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov byte [esp + 0x80], 5
cmp dword [esp + 0x68], 8
jb 0x46d1e9
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
jmp 0x46d1f1
cmp edi, 3
jne 0x46d179
cmp esi, 0xbba
jne 0x46d179
mov al, 1
jmp 0x46d17b
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], ecx
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46d201
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x632220]
push ecx
push eax
mov eax, dword [edx + 8]
push esi
push edi
push str.CHttpDownloadFile::Done__
push str.peerHttpDownloadPeer.cpp
push 0xb2
push 0
push 0x632220
call eax
add esp, 0x24
test byte [0x6321f0], 1
jne 0x46d25f
or dword [0x6321f0], 1
mov byte [esp + 0x80], 0xc
call fcn.004032de
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov byte [esp + 0x80], 5
cmp dword [esp + 0x68], 8
mov esi, dword [esp + 0x54]
jae 0x46d26e
lea esi, [esp + 0x54]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46d27e
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6321f4]
push esi
push eax
mov eax, dword [edx + 4]
push ecx
push edi
push str.CHttpDownloadFile::Done__
push 0
push 0x6321f4
call eax
add esp, 0x1c
push 0
lea edi, [esp + 0x38]
mov dword [esp + 0x38], 0
call fcn.00456600
lea eax, [ebx - 0x88]
mov dword [esp + 0x30], eax
cdq
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov edx, 0x60a290
mov ecx, edi
mov byte [esp + 0x80], 0xe
call fcn.00455b40
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.00455fd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xd
call fcn.00456430
lea ecx, [ebx - 0x80]
push ecx
lea edi, [esp + 0x20]
call fcn.00456710
mov edx, str.full_name
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0xf
call fcn.00455b40
mov esi, eax
mov eax, edi
call fcn.00455fd0
mov ecx, edi
mov byte [esp + 0x80], 0xd
call fcn.00456430
mov eax, dword [esp + 0x18]
cdq
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov edx, 0x60a2b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0x10
call fcn.00455b40
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.00455fd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xd
call fcn.00456430
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov edx, 0x60a2b8
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0x11
call fcn.00455b40
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.00455fd0
mov byte [esp + 0x80], 0xd
lea ecx, [esp + 0x1c]
call fcn.00456430
mov ebx, dword [ebx + 0xc8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
mov edx, str.times
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0x12
call fcn.00455b40
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.00455fd0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0xd
call fcn.00456430
push 0
push 9
call fcn.0046bf70
push eax
lea edi, [esp + 0x40]
xor ebx, ebx
call fcn.0046e590
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x4c]
mov dword [esi - 0x38], eax
mov byte [esi + 0xe8], 1
call edi
mov dword [esi + 0xec], eax
mov eax, dword [esp + 0x30]
call fcn.0046e150
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 5
call fcn.00456430
cmp dword [esp + 0x68], 8
jb 0x46d46d
mov edx, dword [esp + 0x54]
push edx
call fcn.0048a131
add esp, 4
xor eax, eax
mov word [esp + 0x54], ax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 8
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46d654
test eax, eax
je 0x46d654
lea ecx, [eax - 8]
test ecx, ecx
je 0x46d654
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
jmp 0x46d654
cmp byte [ebx + 0x100], 0
je 0x46d502
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x16c]
lea ecx, [ebx + 0x64]
mov byte [ebx + 0x100], 0
call fcn.00401a8e
cmp byte [ebx + 0x111], 0
je 0x46d502
movzx eax, word [ebx + 0x128]
push eax
lea eax, [ebx + 0x12c]
push eax
mov ecx, ebx
call fcn.00460ed0
mov eax, dword [ebx + 0x1a8]
xor ecx, ecx
mov dword [ebx + 0xc8], ecx
cmp eax, ecx
je 0x46d53d
lea ecx, [ebx - 0x88]
add ebx, 0xffffffa0
push ebx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], ecx
push eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
call fcn.0046e310
add esp, 0xc
jmp 0x46d5f9
push ecx
lea edi, [esp + 0x20]
mov byte [ebx - 0x64], cl
mov dword [esp + 0x20], ecx
call fcn.00456600
lea eax, [ebx - 0x88]
cdq
mov dword [esp + 0x34], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
mov edx, 0x60a290
mov ecx, edi
mov byte [esp + 0x80], 0x14
call fcn.00455b40
mov esi, eax
lea eax, [esp + 0x34]
call fcn.00455fd0
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0x13
call fcn.00456430
add ebx, 0xffffff80
push ebx
lea edi, [esp + 0x38]
call fcn.00456710
mov edx, str.full_name
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 0x15
call fcn.00455b40
mov esi, eax
mov eax, edi
call fcn.00455fd0
mov ecx, edi
mov byte [esp + 0x80], 0x13
call fcn.00456430
mov eax, dword [esp + 0x18]
push eax
push 5
call fcn.0046bf70
mov ebx, dword [esp + 0x1c]
push eax
lea edi, [esp + 0x28]
call fcn.0046e590
mov ecx, edi
mov byte [esp + 0x80], 5
call fcn.00456430
cmp dword [esp + 0x68], 8
jb 0x46d60d
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0048a131
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x50]
xor edx, edx
add eax, 8
mov word [esp + 0x54], dx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46d654
test eax, eax
je 0x46d654
add eax, 0xfffffff8
je 0x46d654
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 8