Function at 0x4746e0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a129c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x1c], ebx
cmp dword [edi + 0x1ac], eax
jne 0x474979
test byte [0x63221c], al
jne 0x4747f5
or dword [0x63221c], eax
mov dword [esp + 0xe0], ebx
push 0x632228
mov dword [0x632220], 0x5fd2f0
mov dword [0x632224], ebx
mov dword [0x632240], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xe0], 1
push 8
mov dword [0x632220], 0x5fd330
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x4747a1
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x4747a3
xor esi, esi
push 0x632228
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x632224]
inc dword [0x632240]
cmp eax, ebx
je 0x4747c6
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 dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x60]
mov esi, edi
call fcn.0046e970
mov esi, 8
mov dword [esp + 0xe0], 2
cmp dword [eax + 0x14], esi
jb 0x474817
mov eax, dword [eax]
push eax
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push 0x60abe0
push str.DownloadTask.cpp
push 0x1f5
push 2
push 0x632220
call ecx
add esp, 0x18
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x74], esi
jb 0x474859
mov edx, dword [esp + 0x60]
push edx
call fcn.0048a131
add esp, 4
test byte [0x6321f0], 1
jne 0x474923
or dword [0x6321f0], 1
mov dword [esp + 0xe0], 3
xor ebx, ebx
push 0x6321fc
mov dword [0x6321f4], 0x5fd2f0
mov dword [0x6321f8], ebx
mov dword [0x632214], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xe0], 4
push esi
mov dword [0x6321f4], 0x5fd310
mov byte [0x632218], 1
call fcn.0048a378
add esp, 4
cmp eax, ebx
je 0x4748cf
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x4748d1
xor esi, esi
push 0x6321fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6321f8]
inc dword [0x632214]
cmp eax, ebx
je 0x4748f4
push eax
call fcn.0048a131
add esp, 4
dec dword [0x632214]
push 0x6321fc
mov dword [0x6321f8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x60]
mov esi, edi
call fcn.0046e970
mov esi, 8
mov dword [esp + 0xe0], 5
cmp dword [eax + 0x14], esi
jb 0x474945
mov eax, dword [eax]
push eax
mov eax, dword [0x6321f4]
mov ecx, dword [eax + 4]
push 0x60abe0
push 2
push 0x6321f4
call ecx
add esp, 0x10
cmp dword [esp + 0x74], esi
jb 0x474972
mov edx, dword [esp + 0x60]
push edx
call fcn.0048a131
add esp, 4
xor al, al
jmp 0x47539a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x1ac], eax
call esi
mov dword [edi + 0x100], eax
call esi
mov esi, edi
mov dword [edi + 0x190], eax
call fcn.00475fa0
call fcn.004766f0
cmp dword [edi + 0x60], 8
mov byte [esp + 0x1b], al
lea eax, [edi + 0x4c]
mov dword [esp + 0x20], eax
jb 0x4749b4
mov eax, dword [eax]
push eax
lea eax, [esp + 0x2c]
push 0x60ac10
push eax
call fcn.004466c0
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0xe0], 6
mov ebx, dword [edi + 8]
xor ecx, ecx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], cx
push 0x60b3b4
mov byte [esp + 0xe4], 7
call fcn.0048aa3a
add esp, 4
mov ecx, 0x60b3b4
lea esi, [esp + 0x44]
call fcn.00401741
push 0
call fcn.0048a761
add esp, 4
push edx
push eax
lea esi, [esp + 0xa0]
call fcn.00449ae0
add esp, 8
mov byte [esp + 0xe0], 8
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x14], 8
mov ecx, edx
jb 0x474a44
mov ecx, dword [ecx]
mov edx, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x474a57
lea edx, [esp + 0x44]
cmp dword [eax + 0x14], esi
jb 0x474a5e
mov eax, dword [eax]
push ecx
push edx
push eax
lea edx, [esp + 0x6c]
push str.__s____s___s
push edx
call fcn.004466c0
add esp, 0x14
mov byte [esp + 0xe0], 9
mov esi, dword [ebx + 4]
push eax
mov eax, dword [esi + 4]
push eax
push esi
call fcn.0041121b
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jae 0x474aa2
push str.list_T__too_long
call fcn.004890a5
inc ecx
mov dword [ebx + 8], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esp + 0x74], 8
jb 0x474ac2
mov eax, dword [esp + 0x60]
push eax
call fcn.0048a131
add esp, 4
xor ecx, ecx
cmp dword [esp + 0xac], 8
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], cx
jb 0x474af3
mov edx, dword [esp + 0x98]
push edx
call fcn.0048a131
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x474b07
mov eax, dword [esp + 0x44]
push eax
call fcn.0048a131
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x474b26
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0048a131
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x474b57
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.004710a0
cmp dword [eax + 0x14], 8
mov dword [esp + 0x1c], 1
jb 0x474b48
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474b57
xor bl, bl
jmp 0x474b59
mov bl, 1
test byte [esp + 0x1c], 1
je 0x474b74
cmp dword [esp + 0x3c], 8
jb 0x474b74
mov edx, dword [esp + 0x28]
push edx
call fcn.0048a131
add esp, 4
test bl, bl
je 0x474eaa
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046e970
mov esi, dword [edi + 0x198]
mov ebx, dword [edi + 0x19c]
mov ecx, eax
call fcn.0044bcc0
cmp eax, esi
jne 0x474ba6
cmp edx, ebx
jne 0x474ba6
mov bl, 1
jmp 0x474ba8
xor bl, bl
cmp dword [esp + 0x3c], 8
jb 0x474bbc
mov eax, dword [esp + 0x28]
push eax
call fcn.0048a131
add esp, 4
test bl, bl
je 0x474d21
test byte [0x63221c], 1
mov eax, dword [edi + 8]
mov byte [eax + 0x3c], 1
jne 0x474c03
or dword [0x63221c], 1
mov dword [esp + 0xe0], 0xa
call fcn.00403203
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046e970
mov ebx, 8
mov dword [esp + 0xe0], 0xb
cmp dword [eax + 0x14], ebx
jb 0x474c25
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push 0x60ac20
push str.DownloadTask.cpp
push 0x208
push 2
push 0x632220
call ecx
or esi, 0xffffffff
add esp, 0x20
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x474c74
mov edx, dword [esp + 0x28]
push edx
call fcn.0048a131
add esp, 4
mov eax, 1
test byte [0x6321f0], al
jne 0x474cab
or dword [0x6321f0], eax
mov dword [esp + 0xe0], 0xc
call fcn.004032de
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xe0], esi
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046e970
mov esi, 8
mov dword [esp + 0xe0], 0xd
cmp dword [eax + 0x14], esi
jb 0x474ccd
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x6321f4]
mov ecx, dword [eax + 4]
push 0x60ac20
push 2
push 0x6321f4
call ecx
add esp, 0x18
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x474d13
mov edx, dword [esp + 0x28]
push edx
call fcn.0048a131
add esp, 4
push 0
mov ecx, edi
call fcn.00479d10
jmp 0x475398
mov ecx, edi
call fcn.00472850
test al, al
jne 0x474e85
test byte [0x63221c], 1
jne 0x474d69
or dword [0x63221c], 1
mov dword [esp + 0xe0], 0xe
call fcn.00403203
push 0x5ac41a
call fcn.0048ae63
add esp, 4
or esi, 0xffffffff
mov dword [esp + 0xe0], esi
jmp 0x474d6c
or esi, 0xffffffff
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.004710a0
mov ebx, 8
mov dword [esp + 0xe0], 0xf
cmp dword [eax + 0x14], ebx
jb 0x474d8e
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x632220]
mov ecx, dword [eax + 8]
push 0x60ac58
push str.DownloadTask.cpp
push 0x20e
push 2
push 0x632220
call ecx
add esp, 0x20
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x474dda
mov edx, dword [esp + 0x28]
push edx
call fcn.0048a131
add esp, 4
mov eax, 1
test byte [0x6321f0], al
jne 0x474e11
or dword [0x6321f0], eax
mov dword [esp + 0xe0], 0x10
call fcn.004032de
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xe0], esi
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.004710a0
mov ebx, 8
mov dword [esp + 0xe0], 0x11
cmp dword [eax + 0x14], ebx
jb 0x474e33
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x6321f4]
mov ecx, dword [eax + 4]
push 0x60ac58
push 2
push 0x6321f4
call ecx
add esp, 0x18
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x474e75
mov edx, dword [esp + 0x28]
push edx
call fcn.0048a131
add esp, 4
push 6
mov ecx, edi
call fcn.00479d10
xor al, al
jmp 0x47539a
lea esi, [edi + 0x28]
call fcn.0047edb0
mov eax, dword [edi + 0x198]
mov ecx, dword [edi + 0x19c]
add eax, 0xffffffff
adc ecx, 0xffffffff
push ecx
push eax
push 0
push 0
call fcn.0047e9a0
mov eax, dword [edi + 0x19c]
mov ecx, dword [edi + 0x198]
test eax, eax
jne 0x474ec2
test ecx, ecx
je 0x475009
add ecx, 0xffffffff
adc eax, 0xffffffff
push eax
push ecx
lea eax, [edi + 0x28]
call fcn.0047ed30
test al, al
je 0x475009
test byte [0x63221c], 1
jne 0x474f12
or dword [0x63221c], 1
mov dword [esp + 0xe0], 0x12
call fcn.00403203
push 0x5ac41a
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046e970
mov ebx, 8
mov dword [esp + 0xe0], 0x13
cmp dword [eax + 0x14], ebx
jb 0x474f34
mov eax, dword [eax]
mov edx, dword [0x632220]
push eax
mov eax, dword [edx + 8]
push 0x60ac78
push str.DownloadTask.cpp
push 0x218
push 0
push 0x632220
call eax
or esi, 0xffffffff
add esp, 0x18
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x474f76
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0048a131
add esp, 4
mov eax, 1
test byte [0x6321f0], al
jne 0x474fad
or dword [0x6321f0], eax
mov dword [esp + 0xe0], 0x14
call fcn.004032de
push 0x5ac42e
call fcn.0048ae63
add esp, 4
mov dword [esp + 0xe0], esi
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046e970
mov esi, 8
mov dword [esp + 0xe0], 0x15
cmp dword [eax + 0x14], esi
jb 0x474fcf
mov eax, dword [eax]
mov edx, dword [0x6321f4]
push eax
mov eax, dword [edx + 4]
push 0x60ac78
push 0
push 0x6321f4
call eax
add esp, 0x10
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x474d13
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x474d0b
push 0
call fcn.0048a761
add esp, 4
push eax
call fcn.00492052
add esp, 4
mov dword [esp + 0x1c], 0
mov ecx, dword [edi + 0x6c]
sub ecx, dword [edi + 0x68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4750cf
mov ecx, dword [edi + 0x6c]
sub ecx, dword [edi + 0x68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
call fcn.00492064
xor edx, edx
div ebx
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x14], ecx
lea ebx, [edx*8]
sub ebx, edx
mov edx, dword [ecx + 4]
add ebx, ebx
add ebx, ebx
add eax, ebx
push eax
push edx
push ecx
call fcn.00411155
mov ecx, dword [edi + 0x7c]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x474a98
inc ecx
mov dword [edi + 0x7c], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add ebx, dword [edi + 0x68]
lea edx, [esp + 0x24]
push ebx
push edx
lea ebx, [edi + 0x68]
call fcn.0044d3c0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x475024
lea ebx, [esp + 0xb4]
mov ecx, edi
call fcn.004710a0
lea eax, [esp + 0x7c]
mov dword [esp + 0xe0], 0x16
mov ecx, dword [esp + 0x20]
push eax
call fcn.0044a550
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 0x17
call fcn.004756d0
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x47511c
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push 0x60ac98
push ecx
call fcn.004466c0
add esp, 0xc
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 8]
xor edx, edx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], dx
push 0x60b3c0
mov byte [esp + 0xe4], 0x19
call fcn.0048aa3a
add esp, 4
mov ecx, 0x60b3c0
lea esi, [esp + 0x44]
call fcn.00401741
push 0
call fcn.0048a761
add esp, 4
push edx
push eax
lea esi, [esp + 0x30]
call fcn.00449ae0
add esp, 8
mov byte [esp + 0xe0], 0x1a
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x14], 8
jb 0x4751a3
mov edx, ecx
mov ecx, dword [edx]
jmp 0x4751a7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x4751ba
lea edx, [esp + 0x44]
cmp dword [eax + 0x14], esi
jb 0x4751c1
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x6c]
push str.__s____s___s
push eax
call fcn.004466c0
add esp, 0x14
mov byte [esp + 0xe0], 0x1b
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
push esi
call fcn.0041121b
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jae 0x475205
push str.list_T__too_long
call fcn.004890a5
inc ecx
mov dword [ebx + 8], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
cmp dword [esp + 0x74], 8
jb 0x475225
mov eax, dword [esp + 0x60]
push eax
call fcn.0048a131
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], cx
jb 0x475250
mov edx, dword [esp + 0x28]
push edx
call fcn.0048a131
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x475264
mov eax, dword [esp + 0x44]
push eax
call fcn.0048a131
add esp, 4
mov byte [esp + 0xe0], 0x17
cmp dword [esp + 0xac], 8
jb 0x475286
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0048a131
add esp, 4
push 0x238
call fcn.0048a378
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0xe0], 0x1c
test eax, eax
je 0x4752c2
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea edx, [edi + 0x220]
lea ecx, [esp + 0xbc]
mov ebx, eax
call fcn.0046c120
mov esi, eax
jmp 0x4752c4
xor esi, esi
push 0xffffffffffffffff
mov byte [esp + 0xe4], 0x17
push 0
lea eax, [edi + 0x88]
lea ecx, [esi + 0x28]
mov byte [esi + 0x17c], 1
call fcn.00401a8e
mov dword [esi + 0x230], 0x471170
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x20], esi
cmp eax, ecx
je 0x47530b
lea esp, [esp]
cmp dword [eax + 8], esi
je 0x475341
mov eax, dword [eax]
cmp eax, ecx
jne 0x475300
mov esi, ecx
mov eax, dword [esi + 4]
lea edx, [esp + 0x20]
push edx
push eax
push esi
call fcn.0047eeb0
mov ecx, dword [edi + 0x44]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jae 0x475335
push str.list_T__too_long
call fcn.004890a5
inc ecx
mov dword [edi + 0x44], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
push edi
call fcn.00472db0
mov esi, 8
cmp dword [esp + 0x90], esi
jb 0x475362
mov edx, dword [esp + 0x7c]
push edx
call fcn.0048a131
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
cmp dword [esp + 0xc8], esi
jb 0x475398
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0048a131
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret