Function at 0x475670
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 0x5a320c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
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 0x475909
test byte [0x6353fc], al
jne 0x475785
or dword [0x6353fc], eax
mov dword [esp + 0xe0], ebx
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], ebx
mov dword [0x635420], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xe0], 1
push 8
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, ebx
je 0x475731
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x475733
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
cmp eax, ebx
je 0x475756
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 dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x60]
mov esi, edi
call fcn.0046f8b0
mov esi, 8
mov dword [esp + 0xe0], 2
cmp dword [eax + 0x14], esi
jb 0x4757a7
mov eax, dword [eax]
push eax
mov eax, dword [0x635400]
mov ecx, dword [eax + 8]
push 0x60cec8
push str.DownloadTask.cpp
push 0x1f5
push 2
push 0x635400
call ecx
add esp, 0x18
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x74], esi
jb 0x4757e9
mov edx, dword [esp + 0x60]
push edx
call fcn.0048bcc1
add esp, 4
test byte [0x6353d0], 1
jne 0x4758b3
or dword [0x6353d0], 1
mov dword [esp + 0xe0], 3
xor ebx, ebx
push 0x6353dc
mov dword [0x6353d4], 0x5ff3e8
mov dword [0x6353d8], ebx
mov dword [0x6353f4], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0xe0], 4
push esi
mov dword [0x6353d4], 0x5ff408
mov byte [0x6353f8], 1
call fcn.0048bf08
add esp, 4
cmp eax, ebx
je 0x47585f
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
jmp 0x475861
xor esi, esi
push 0x6353dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6353d8]
inc dword [0x6353f4]
cmp eax, ebx
je 0x475884
push eax
call fcn.0048bcc1
add esp, 4
dec dword [0x6353f4]
push 0x6353dc
mov dword [0x6353d8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x60]
mov esi, edi
call fcn.0046f8b0
mov esi, 8
mov dword [esp + 0xe0], 5
cmp dword [eax + 0x14], esi
jb 0x4758d5
mov eax, dword [eax]
push eax
mov eax, dword [0x6353d4]
mov ecx, dword [eax + 4]
push 0x60cec8
push 2
push 0x6353d4
call ecx
add esp, 0x10
cmp dword [esp + 0x74], esi
jb 0x475902
mov edx, dword [esp + 0x60]
push edx
call fcn.0048bcc1
add esp, 4
xor al, al
jmp 0x47632b
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.00476f30
call fcn.00477680
cmp dword [edi + 0x60], 8
mov byte [esp + 0x1b], al
lea eax, [edi + 0x4c]
mov dword [esp + 0x20], eax
jb 0x475944
mov eax, dword [eax]
push eax
lea eax, [esp + 0x2c]
push 0x60cef8
push eax
call fcn.00445760
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 0x60d69c
mov byte [esp + 0xe4], 7
call fcn.0048c5ca
add esp, 4
mov ecx, 0x60d69c
lea esi, [esp + 0x44]
call fcn.00401834
push 0
call fcn.0048c2f1
add esp, 4
push edx
push eax
lea esi, [esp + 0xa0]
call fcn.00448ef0
add esp, 8
mov byte [esp + 0xe0], 8
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x14], 8
mov ecx, edx
jb 0x4759d4
mov ecx, dword [ecx]
mov edx, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x4759e7
lea edx, [esp + 0x44]
cmp dword [eax + 0x14], esi
jb 0x4759ee
mov eax, dword [eax]
push ecx
push edx
push eax
lea edx, [esp + 0x6c]
push str.__s____s___s
push edx
call fcn.00445760
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.00410373
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jae 0x475a32
push str.list_T__too_long
call fcn.0048ac2a
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 0x475a52
mov eax, dword [esp + 0x60]
push eax
call fcn.0048bcc1
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 0x475a83
mov edx, dword [esp + 0x98]
push edx
call fcn.0048bcc1
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x475a97
mov eax, dword [esp + 0x44]
push eax
call fcn.0048bcc1
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x475ab6
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0048bcc1
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x475ae7
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.00471ff0
cmp dword [eax + 0x14], 8
mov dword [esp + 0x1c], 1
jb 0x475ad8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x475ae7
xor bl, bl
jmp 0x475ae9
mov bl, 1
test byte [esp + 0x1c], 1
je 0x475b04
cmp dword [esp + 0x3c], 8
jb 0x475b04
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
test bl, bl
je 0x475e3a
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046f8b0
mov esi, dword [edi + 0x198]
mov ebx, dword [edi + 0x19c]
mov ecx, eax
call fcn.0044b110
cmp eax, esi
jne 0x475b36
cmp edx, ebx
jne 0x475b36
mov bl, 1
jmp 0x475b38
xor bl, bl
cmp dword [esp + 0x3c], 8
jb 0x475b4c
mov eax, dword [esp + 0x28]
push eax
call fcn.0048bcc1
add esp, 4
test bl, bl
je 0x475cb1
test byte [0x6353fc], 1
mov eax, dword [edi + 8]
mov byte [eax + 0x3c], 1
jne 0x475b93
or dword [0x6353fc], 1
mov dword [esp + 0xe0], 0xa
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046f8b0
mov ebx, 8
mov dword [esp + 0xe0], 0xb
cmp dword [eax + 0x14], ebx
jb 0x475bb5
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x635400]
mov ecx, dword [eax + 8]
push 0x60cf08
push str.DownloadTask.cpp
push 0x208
push 2
push 0x635400
call ecx
or esi, 0xffffffff
add esp, 0x20
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x475c04
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
mov eax, 1
test byte [0x6353d0], al
jne 0x475c3b
or dword [0x6353d0], eax
mov dword [esp + 0xe0], 0xc
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [esp + 0xe0], esi
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046f8b0
mov esi, 8
mov dword [esp + 0xe0], 0xd
cmp dword [eax + 0x14], esi
jb 0x475c5d
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x6353d4]
mov ecx, dword [eax + 4]
push 0x60cf08
push 2
push 0x6353d4
call ecx
add esp, 0x18
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x475ca3
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
push 0
mov ecx, edi
call fcn.0047ace0
jmp 0x476329
mov ecx, edi
call fcn.004737e0
test al, al
jne 0x475e15
test byte [0x6353fc], 1
jne 0x475cf9
or dword [0x6353fc], 1
mov dword [esp + 0xe0], 0xe
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
or esi, 0xffffffff
mov dword [esp + 0xe0], esi
jmp 0x475cfc
or esi, 0xffffffff
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.00471ff0
mov ebx, 8
mov dword [esp + 0xe0], 0xf
cmp dword [eax + 0x14], ebx
jb 0x475d1e
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x635400]
mov ecx, dword [eax + 8]
push 0x60cf40
push str.DownloadTask.cpp
push 0x20e
push 2
push 0x635400
call ecx
add esp, 0x20
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x475d6a
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
mov eax, 1
test byte [0x6353d0], al
jne 0x475da1
or dword [0x6353d0], eax
mov dword [esp + 0xe0], 0x10
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [esp + 0xe0], esi
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.00471ff0
mov ebx, 8
mov dword [esp + 0xe0], 0x11
cmp dword [eax + 0x14], ebx
jb 0x475dc3
mov eax, dword [eax]
mov ecx, dword [edi + 0x19c]
mov edx, dword [edi + 0x198]
push ecx
push edx
push eax
mov eax, dword [0x6353d4]
mov ecx, dword [eax + 4]
push 0x60cf40
push 2
push 0x6353d4
call ecx
add esp, 0x18
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x475e05
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
push 6
mov ecx, edi
call fcn.0047ace0
xor al, al
jmp 0x47632b
lea esi, [edi + 0x28]
call fcn.0047fe30
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.0047fa20
mov eax, dword [edi + 0x19c]
mov ecx, dword [edi + 0x198]
test eax, eax
jne 0x475e52
test ecx, ecx
je 0x475f99
add ecx, 0xffffffff
adc eax, 0xffffffff
push eax
push ecx
lea eax, [edi + 0x28]
call fcn.0047fdb0
test al, al
je 0x475f99
test byte [0x6353fc], 1
jne 0x475ea2
or dword [0x6353fc], 1
mov dword [esp + 0xe0], 0x12
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov dword [esp + 0xe0], 0xffffffff
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046f8b0
mov ebx, 8
mov dword [esp + 0xe0], 0x13
cmp dword [eax + 0x14], ebx
jb 0x475ec4
mov eax, dword [eax]
mov edx, dword [0x635400]
push eax
mov eax, dword [edx + 8]
push 0x60cf60
push str.DownloadTask.cpp
push 0x218
push 0
push 0x635400
call eax
or esi, 0xffffffff
add esp, 0x18
mov dword [esp + 0xe0], esi
cmp dword [esp + 0x3c], ebx
jb 0x475f06
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0048bcc1
add esp, 4
mov eax, 1
test byte [0x6353d0], al
jne 0x475f3d
or dword [0x6353d0], eax
mov dword [esp + 0xe0], 0x14
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [esp + 0xe0], esi
lea ebx, [esp + 0x28]
mov esi, edi
call fcn.0046f8b0
mov esi, 8
mov dword [esp + 0xe0], 0x15
cmp dword [eax + 0x14], esi
jb 0x475f5f
mov eax, dword [eax]
mov edx, dword [0x6353d4]
push eax
mov eax, dword [edx + 4]
push 0x60cf60
push 0
push 0x6353d4
call eax
add esp, 0x10
mov dword [esp + 0xe0], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x475ca3
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x475c9b
push 0
call fcn.0048c2f1
add esp, 4
push eax
call fcn.00493bf2
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 0x47605f
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.00493c04
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.004102ad
mov ecx, dword [edi + 0x7c]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jb 0x475a28
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.0044ca80
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0xa
jl 0x475fb4
lea ebx, [esp + 0xb4]
mov ecx, edi
call fcn.00471ff0
lea eax, [esp + 0x7c]
mov dword [esp + 0xe0], 0x16
mov ecx, dword [esp + 0x20]
push eax
call fcn.00449990
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 0x17
call fcn.00476660
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x4760ac
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push 0x60cf80
push ecx
call fcn.00445760
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 0x60d6a8
mov byte [esp + 0xe4], 0x19
call fcn.0048c5ca
add esp, 4
mov ecx, 0x60d6a8
lea esi, [esp + 0x44]
call fcn.00401834
push 0
call fcn.0048c2f1
add esp, 4
push edx
push eax
lea esi, [esp + 0x30]
call fcn.00448ef0
add esp, 8
mov byte [esp + 0xe0], 0x1a
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x14], 8
jb 0x476133
mov edx, ecx
mov ecx, dword [edx]
jmp 0x476137
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x47614a
lea edx, [esp + 0x44]
cmp dword [eax + 0x14], esi
jb 0x476151
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x6c]
push str.__s____s___s
push eax
call fcn.00445760
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.00410373
mov ecx, dword [ebx + 8]
mov edx, 0x9249248
sub edx, ecx
cmp edx, 1
jae 0x476195
push str.list_T__too_long
call fcn.0048ac2a
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 0x4761b5
mov eax, dword [esp + 0x60]
push eax
call fcn.0048bcc1
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 0x4761e0
mov edx, dword [esp + 0x28]
push edx
call fcn.0048bcc1
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x4761f4
mov eax, dword [esp + 0x44]
push eax
call fcn.0048bcc1
add esp, 4
mov byte [esp + 0xe0], 0x17
cmp dword [esp + 0xac], 8
jb 0x476216
mov ecx, dword [esp + 0x98]
push ecx
call fcn.0048bcc1
add esp, 4
push 0x238
call fcn.0048bf08
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0xe0], 0x1c
test eax, eax
je 0x476252
mov ecx, dword [esp + 0x20]
push 0
push ecx
lea edx, [edi + 0x220]
lea ecx, [esp + 0xbc]
mov ebx, eax
call fcn.0046d120
mov esi, eax
jmp 0x476254
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.00401b81
mov dword [esi + 0x230], 0x4720c0
mov ecx, dword [edi + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x20], esi
cmp eax, ecx
je 0x47629b
lea esp, [esp]
cmp dword [eax + 8], esi
je 0x4762d1
mov eax, dword [eax]
cmp eax, ecx
jne 0x476290
mov esi, ecx
mov eax, dword [esi + 4]
lea edx, [esp + 0x20]
push edx
push eax
push esi
call fcn.0047c2a0
mov ecx, dword [edi + 0x44]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jae 0x4762c5
push str.list_T__too_long
call fcn.0048ac2a
inc ecx
mov dword [edi + 0x44], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov ecx, edi
call fcn.00473d40
mov esi, 8
cmp dword [esp + 0x90], esi
jb 0x4762f3
mov edx, dword [esp + 0x7c]
push edx
call fcn.0048bcc1
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 0x476329
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.0048bcc1
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.0048b951
mov esp, ebp
pop ebp
ret