Function at 0x46dc20
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 0x5a15ec
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0x70]
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 + 0x44], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], eax
cmp eax, edi
je 0x46dc84
lea ecx, [eax + 8]
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x78], edi
cmp eax, edi
jne 0x46de4c
test byte [0x6353fc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jne 0x46dd40
or dword [0x6353fc], 1
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], edi
mov dword [0x635420], edi
call ebx
mov byte [esp + 0x78], 2
push 8
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, edi
je 0x46dcf2
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46dcf4
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
cmp eax, edi
je 0x46dd17
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 + 0x78], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x635400]
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 0x635400
call eax
add esp, 0x1c
test byte [0x6353d0], 1
jne 0x46de24
or dword [0x6353d0], 1
push 0x6353dc
mov dword [0x6353d4], 0x5ff3e8
mov dword [0x6353d8], edi
mov dword [0x6353f4], edi
call ebx
mov byte [esp + 0x78], 4
push 8
mov dword [0x6353d4], 0x5ff408
mov byte [0x6353f8], 1
call fcn.0048bf08
add esp, 4
cmp eax, edi
je 0x46ddd1
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46ddd3
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 0x46ddfb
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 + 0x78], 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [0x6353d4]
push ecx
mov ecx, dword [eax + 4]
push edx
push str.m_curlHttp_is_Null_et:_d_ec:_d
push 2
push 0x6353d4
call ecx
add esp, 0x14
jmp 0x46e5f5
mov ecx, dword [ebx + 8]
lea ecx, [ecx + 0x5c]
lea esi, [esp + 0x4c]
call fcn.004454f0
mov byte [esp + 0x78], 5
test byte [0x6353fc], 1
jne 0x46df0e
or dword [0x6353fc], 1
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], edi
mov dword [0x635420], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x78], 7
push 8
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, edi
je 0x46dec0
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x46dec2
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
cmp eax, edi
je 0x46dee5
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 + 0x78], 5
lea esi, [ebx + 0x12c]
mov eax, 8
cmp dword [esi + 0x14], eax
jb 0x46df20
mov esi, dword [esi]
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x60], eax
jae 0x46df2e
lea edi, [esp + 0x4c]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46df3e
mov eax, dword [eax]
mov ecx, dword [0x635400]
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 0x635400
call edx
add esp, 0x28
test byte [0x6353d0], 1
jne 0x46e02f
or dword [0x6353d0], 1
xor eax, eax
push 0x6353dc
mov dword [0x6353d4], 0x5ff3e8
mov dword [0x6353d8], eax
mov dword [0x6353f4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x78], 9
push 8
mov dword [0x6353d4], 0x5ff408
mov byte [0x6353f8], 1
call fcn.0048bf08
add esp, 4
test eax, eax
je 0x46dfd8
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov dword [esp + 0x40], eax
jmp 0x46dfe0
mov dword [esp + 0x40], 0
push 0x6353dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6353d8]
inc dword [0x6353f4]
test eax, eax
je 0x46e003
push eax
call fcn.0048bcc1
add esp, 4
mov eax, dword [esp + 0x40]
dec dword [0x6353f4]
push 0x6353dc
mov dword [0x6353d8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0x78], 5
lea eax, [ebx + 0x12c]
mov ecx, 8
cmp dword [eax + 0x14], ecx
jb 0x46e047
mov edx, dword [eax]
mov dword [esp + 0x40], edx
jmp 0x46e04b
mov dword [esp + 0x40], eax
cmp dword [esp + 0x60], ecx
jb 0x46e05b
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
jmp 0x46e063
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], ecx
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46e073
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push eax
mov eax, dword [0x6353d4]
mov ecx, dword [eax + 4]
push esi
push edi
push str.HttpPeerDone__d__d__s__s__s
push 0
push 0x6353d4
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
add esp, 0x20
mov ecx, ebx
call eax
cmp edi, 5
jne 0x46e141
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 + 0x78], 0xa
call fcn.00455200
mov edx, str.code
mov ecx, eax
call fcn.00455200
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00456090
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
mov dword [esi], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x2c]
mov dword [esi + 0xc], edx
mov dword [esp + 0x34], eax
call fcn.00455b60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 5
call fcn.00455b60
mov ecx, ebx
call fcn.00462710
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov edi, edx
mov esi, eax
lea ecx, [ebx + 0xd0]
call fcn.00455b60
cmp edi, 5
jne 0x46e1ae
test esi, esi
jne 0x46e1bb
xor al, al
mov ecx, dword [ebx + 0xc8]
cmp ecx, dword [ebx + 0xe0]
ja 0x46e472
test al, al
je 0x46e472
test byte [0x6353fc], 1
jne 0x46e19d
or dword [0x6353fc], 1
mov byte [esp + 0x78], 0xb
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0x78], 5
cmp dword [esp + 0x60], 8
jb 0x46e1bf
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
jmp 0x46e1c7
cmp edi, 3
jne 0x46e155
cmp esi, 0xbba
jne 0x46e155
mov al, 1
jmp 0x46e157
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], ecx
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46e1d7
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x635400]
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 0x635400
call eax
add esp, 0x24
test byte [0x6353d0], 1
jne 0x46e22f
or dword [0x6353d0], 1
mov byte [esp + 0x78], 0xc
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov byte [esp + 0x78], 5
cmp dword [esp + 0x60], 8
mov esi, dword [esp + 0x4c]
jae 0x46e23e
lea esi, [esp + 0x4c]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 8
jb 0x46e24e
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6353d4]
push esi
push eax
mov eax, dword [edx + 4]
push ecx
push edi
push str.CHttpDownloadFile::Done__
push 0
push 0x6353d4
call eax
add esp, 0x1c
push 0
lea edi, [esp + 0x30]
mov dword [esp + 0x30], 0
call fcn.00455d30
lea esi, [ebx - 0x88]
mov eax, esi
cdq
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x1c]
push ecx
mov edx, 0x60c578
mov ecx, edi
mov byte [esp + 0x7c], 0xe
call fcn.00455200
mov ecx, eax
call fcn.00455700
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0xd
call fcn.00455b60
lea edx, [ebx - 0x80]
push edx
lea edi, [esp + 0x20]
call fcn.00455e40
mov eax, edi
push eax
mov edx, str.full_name
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0xf
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0x78], 0xd
call fcn.00455b60
mov eax, dword [esp + 0x18]
cdq
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
lea ecx, [esp + 0x1c]
push ecx
mov edx, 0x60c598
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0x10
call fcn.00455200
mov ecx, eax
call fcn.00455700
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0xd
call fcn.00455b60
mov eax, dword [esp + 0x14]
cdq
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
lea edx, [esp + 0x1c]
push edx
mov edx, 0x60c5a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0x11
call fcn.00455200
mov ecx, eax
call fcn.00455700
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0xd
call fcn.00455b60
mov ebx, dword [ebx + 0xc8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0
lea eax, [esp + 0x1c]
push eax
mov edx, str.times
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 0x12
call fcn.00455200
mov ecx, eax
call fcn.00455700
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0xd
call fcn.00455b60
push 0
push 9
call fcn.0046cf70
push eax
lea edi, [esp + 0x38]
xor ebx, ebx
call fcn.0046f530
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edi, dword [esp + 0x44]
mov dword [edi - 0x38], eax
mov byte [edi + 0xe8], 1
call ebx
mov dword [edi + 0xec], eax
mov eax, esi
call fcn.0046f0f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 5
call fcn.00455b60
cmp dword [esp + 0x60], 8
jb 0x46e41d
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0048bcc1
add esp, 4
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x48]
xor edx, edx
add eax, 8
mov word [esp + 0x4c], dx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x46e5f5
test eax, eax
je 0x46e5f5
lea ecx, [eax - 8]
test ecx, ecx
je 0x46e5f5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
jmp 0x46e5f5
cmp byte [ebx + 0x100], 0
je 0x46e4b3
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x16c]
lea ecx, [ebx + 0x64]
mov byte [ebx + 0x100], 0
call fcn.00401b81
cmp byte [ebx + 0x111], 0
je 0x46e4b3
movzx eax, word [ebx + 0x128]
push eax
lea eax, [ebx + 0x12c]
push eax
mov ecx, ebx
call fcn.00461d00
mov eax, dword [ebx + 0x1a8]
xor ecx, ecx
mov dword [ebx + 0xc8], ecx
cmp eax, ecx
je 0x46e4ee
lea ecx, [ebx - 0x88]
add ebx, 0xffffffa0
push ebx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], ecx
push eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
call fcn.0046f2b0
add esp, 0xc
jmp 0x46e59d
push ecx
lea edi, [esp + 0x20]
mov byte [ebx - 0x64], cl
mov dword [esp + 0x20], ecx
call fcn.00455d30
lea eax, [ebx - 0x88]
cdq
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
lea eax, [esp + 0x2c]
push eax
mov edx, 0x60c578
mov ecx, edi
mov byte [esp + 0x7c], 0x14
call fcn.00455200
mov ecx, eax
call fcn.00455700
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 0x13
call fcn.00455b60
add ebx, 0xffffff80
push ebx
lea edi, [esp + 0x30]
call fcn.00455e40
mov ecx, edi
push ecx
mov edx, str.full_name
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 0x15
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0x78], 0x13
call fcn.00455b60
mov edx, dword [esp + 0x18]
push edx
push 5
call fcn.0046cf70
mov ebx, dword [esp + 0x1c]
push eax
lea edi, [esp + 0x28]
call fcn.0046f530
mov ecx, edi
mov byte [esp + 0x78], 5
call fcn.00455b60
cmp dword [esp + 0x60], 8
jb 0x46e5b1
mov eax, dword [esp + 0x4c]
push eax
call fcn.0048bcc1
add esp, 4
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x48]
xor ecx, ecx
add eax, 8
mov word [esp + 0x4c], cx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov edx, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
jne 0x46e5f5
test eax, eax
je 0x46e5f5
add eax, 0xfffffff8
je 0x46e5f5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret 8