Function at 0x406cfe
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 0x20], 0
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0x1c], 0
push ebx
push 0x1ca
push 0x4514
call fcn.0040107a
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4071be
push esi
push edi
lea edi, [ebx + 0x4000]
lea esi, [edi + 0x208]
lea eax, [esi + 0x104]
mov dword [ebp - 8], eax
add eax, 0x104
push 0x50
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0xc]
call fcn.00406195
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x406d6a
push 0x2d
jmp 0x406d7d
push dword [ebp + 0xc]
push esi
call fcn.0040678a
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x406d8f
push 0x2e
call fcn.004033fd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4071b1
push 1
push eax
call fcn.00405afd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x28]
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
call fcn.004063ba
and dword [ebp - 0xc], 0
push 0x2710
push 0x3fff
push ebx
push dword [ebp - 0x10]
call fcn.004060c7
test eax, eax
jle 0x4071a0
push 0x104
push edi
lea esi, [eax + ebx]
push ebx
mov byte [esi], 0
call fcn.004019a5
push 0
push 1
push edi
mov dword [ebp + 0xc], eax
call fcn.00401a35
push eax
call fcn.00401481
push 2
push edi
mov dword [ebp - 0x28], eax
call fcn.00401a35
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push dword [ebp - 0x14]
call edi
push 5
lea eax, [ebx + 0x4000]
push str.HTTP_
push eax
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x406e2d
push 0x2f
jmp 0x4071a8
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
jmp 0x406ebe
push 0x104
lea eax, [ebx + 0x4000]
push eax
push dword [ebp + 0xc]
call fcn.004019a5
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x4000]
cmp byte [eax], 0
je 0x406eca
push dword [ebp - 8]
push 0x40c340
push eax
call fcn.00401597
add esp, 0xc
push 1
lea eax, [ebx + 0x4000]
push eax
call fcn.00401a35
push str.Content_Length:
push dword [ebp - 8]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406ea0
push eax
push dword [ebp - 0x24]
call fcn.00401481
mov dword [ebp - 0xc], eax
jmp 0x406ebe
push str.Last_Modified:
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406ebe
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x24]
call fcn.0040620e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x406e3c
cmp dword [ebp - 0x28], 0xc8
je 0x406f40
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x406ee1
push eax
push ebx
call edi
jmp 0x406f00
push 0x2710
push 0x208
push ebx
push dword [ebp - 0x10]
call fcn.004060c7
test eax, eax
jle 0x4071a6
mov byte [eax + ebx], 0
push ebx
call fcn.00401df9
test eax, eax
jne 0x406f29
push 0x104
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebx + 0x4000]
push eax
push ebx
push dword [ebp - 8]
call fcn.00402abc
push ebx
call fcn.00401580
cmp byte [eax], 0x3c
jne 0x4071b1
push dword [ebp - 0x14]
jmp 0x4071ae
push dword [ebp + 0x10]
call fcn.004042de
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x406f6a
push dword [ebp + 0x10]
push 3
call fcn.004033fd
push eax
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4071b1
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 1
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x24], 0
and dword [ebp - 0x14], 0
call edi
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
test esi, esi
jle 0x406fab
push esi
push dword [ebp + 0xc]
push ebx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x406fdb
mov ebx, dword [ebp + 8]
call fcn.004064ee
test eax, eax
je 0x40712c
push 0
push 0x4000
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x4070f6
mov ebx, dword [ebp - 4]
call edi
push esi
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.00402e31
test eax, eax
jl 0x407142
cmp eax, esi
jl 0x40714c
add dword [ebp - 0x14], esi
add dword [ebp - 0x24], esi
call edi
mov esi, eax
sub esi, dword [ebp - 0x2c]
cmp dword [ebp - 0xc], 0
je 0x4070cc
test esi, esi
je 0x4070b3
push dword [ebp - 0xc]
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x64
push dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
test esi, esi
jbe 0x407053
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
xor edx, edx
push 0xa
pop ecx
div ecx
xor edx, edx
div esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x64
push 0
push eax
push dword [ebp - 8]
call fcn.00402ce4
push 0xa
pop ecx
xor edx, edx
mov eax, esi
div ecx
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push 0x30
call fcn.004033fd
push eax
lea esi, [ebx + 0x4000]
push esi
call fcn.00401f1e
add esp, 0x14
push esi
push 0x64
push dword [ebp + 8]
call fcn.004034ed
mov eax, dword [ebp + 0xc]
push 0
push 0xa
pop ecx
xor edx, edx
div ecx
push eax
push 0x402
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x40715c
jbe 0x406fab
push 0x34
jmp 0x406d7d
push dword [ebp - 0x14]
push 0x31
call fcn.004033fd
push eax
add ebx, 0x4000
push ebx
call fcn.00401f1e
add esp, 0xc
push ebx
push 0x64
push dword [ebp + 8]
call fcn.004034ed
jmp 0x406fab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x407153
call edi
sub eax, dword [ebp - 0x28]
cmp eax, 0x7530
ja 0x40719d
push 0x64
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x406fab
push 0x38
call fcn.004033fd
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [ebp - 4]
jmp 0x4071b1
push dword [ebp + 0x10]
push 5
jmp 0x406f55
push 0x37
jmp 0x406d7d
cmp dword [ebp - 0xc], 0
jne 0x407199
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x38]
push eax
push eax
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x18]
call fcn.00402dc1
or dword [ebp - 0x18], 0xffffffff
push 0x33
call fcn.004033fd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc dword [ebp - 0x20]
jmp 0x4071b1
push 0x29
jmp 0x40712e
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2a
call fcn.004033fd
push eax
push ebx
call edi
push ebx
push 0x64
push dword [ebp + 8]
call fcn.004034ed
pop edi
pop esi
push dword [ebp - 0x10]
call fcn.00405bf9
push dword [ebp - 0x18]
call fcn.00402dc1
cmp dword [ebp - 0x1c], 0
je 0x4071dd
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040315f
cmp dword [ebp - 0x20], 0
pop ebx
jne 0x4071f2
push dword [ebp + 0x10]
call fcn.004040ff
mov eax, dword [ebp - 0x20]
leave
ret 0xc