Function at 0x1012832
Capabilities:
Check for time delay via gettickcount
Check http status code
Delete file
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x550
mov eax, dword [0x10161d4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4b0], eax
mov eax, dword [ebp + 0x18]
or dword [ebp - 0x490], 0xffffffff
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x498], eax
mov eax, dword [ebp + 0x24]
push ebx
push esi
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp + 0x28]
push edi
mov ecx, eax
not ecx
xor edi, edi
inc edi
and ecx, edi
mov dword [ebp - 0x4a4], ecx
mov ecx, eax
mov edx, eax
mov esi, eax
shr ecx, 3
shr eax, 4
xor ebx, ebx
not ecx
and ecx, edi
not eax
and eax, edi
shr edx, 1
and edx, edi
shr esi, 2
and esi, edi
mov dword [ebp - 0x4c4], ecx
push 9
mov dword [ebp - 0x4b4], eax
xor eax, eax
cmp dword [ebp - 0x47c], ebx
pop ecx
lea edi, [ebp - 0x4e8]
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x4bc], 0x100303c
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x494], ebx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x49c], ebx
mov dword [ebp - 0x4ac], edx
rep stosd dword es:[edi], eax
je 0x10130ef
cmp dword [ebp - 0x48c], ebx
jne 0x1012934
cmp edx, ebx
je 0x10130ef
mov eax, dword [ebp - 0x4b0]
cmp eax, ebx
je 0x1012940
mov dword [eax], ebx
lea eax, [ebp - 0x4e8]
push eax
push dword [ebp - 0x46c]
call fcn.010125af
test eax, eax
jne 0x101297a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1012969
call esi
jmp 0x10130f4
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10130f4
mov ebx, 0x1048
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push ebx
push 8
mov dword [ebp - 0x478], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
cmp dword [ebp - 0x478], 0
mov dword [ebp - 0x474], eax
je 0x1012ba7
xor ecx, ecx
cmp eax, ecx
je 0x1012ba7
push dword [ebp + 0x1c]
mov edx, dword [ebp - 0x478]
push dword [ebp - 0x484]
mov word [edx], cx
mov word [eax], cx
mov word [ebp - 0x260], cx
mov word [ebp - 0x464], cx
call fcn.01011d96
test eax, eax
jne 0x10129f6
mov esi, 0x80004004
jmp 0x1012bac
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x540]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x530], eax
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x514], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x524], eax
mov eax, 0x101
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x518], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x53c], eax
lea eax, [ebp - 0x540]
push eax
push 0
push 0
push dword [ebp - 0x47c]
mov edi, 0x824
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x540], 0x3c
mov dword [ebp - 0x52c], edi
mov dword [ebp - 0x510], edi
mov dword [ebp - 0x51c], ecx
mov dword [ebp - 0x538], 0x20
call dword [ebp - 0x4e8]
test eax, eax
jne 0x1012abb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1012aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1012fd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1012bac
mov ecx, dword [ebp - 0x47c]
xor eax, eax
cmp word [ecx], ax
je 0x1012ba0
cmp word [ebp - 0x5c], ax
je 0x1012ba0
mov ecx, dword [ebp - 0x478]
cmp word [ecx], ax
je 0x1012ba0
lea eax, [ebp - 0x5c]
push 0x1002f8c
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x1012ba0
test esi, esi
je 0x1012b7e
lea eax, [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x4f6]
push eax
movzx eax, word [ebp - 0x4f8]
push eax
movzx eax, word [ebp - 0x4fa]
push eax
movzx eax, word [ebp - 0x4fe]
push eax
movzx eax, word [ebp - 0x500]
push 0x64
pop ecx
cdq
idiv ecx
lea eax, [ebp - 0x1c]
push edx
push 0x1003010
push 0x100
push 0
push 0
push 0xc
push eax
call fcn.0100606b
mov esi, eax
add esp, 0x2c
test esi, esi
jl 0x1012bac
push 0x100
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x474]
call fcn.0100725b
mov esi, eax
test esi, esi
jl 0x1012bac
xor eax, eax
cmp dword [ebp - 0x4a4], eax
sete al
mov dword [ebp - 0x4a4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x49c], eax
jmp 0x1012c92
mov esi, 0x80070057
jmp 0x1012bac
mov esi, 0x8007000e
xor edi, edi
cmp dword [ebp - 0x468], edi
je 0x1012bc8
push dword [ebp - 0x468]
call dword [ebp - 0x4cc]
mov dword [ebp - 0x468], edi
cmp dword [ebp - 0x488], edi
je 0x1012be2
push dword [ebp - 0x488]
call dword [ebp - 0x4cc]
mov dword [ebp - 0x488], edi
cmp dword [ebp - 0x4a8], edi
je 0x1012bf6
push dword [ebp - 0x4a8]
call dword [ebp - 0x4cc]
cmp dword [ebp - 0x480], edi
je 0x1012c18
push dword [ebp - 0x480]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x480], edi
cmp esi, edi
jge 0x10130a1
push dword [ebp + 0x1c]
push dword [ebp - 0x484]
call fcn.01011d96
test eax, eax
je 0x1013078
cmp dword [ebp - 0x490], edi
jl 0x1013078
cmp dword [ebp - 0x490], 3
jae 0x1013078
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x49c]
jbe 0x1012c65
sub eax, dword [ebp - 0x49c]
jmp 0x1012c6c
sub eax, dword [ebp - 0x49c]
dec eax
cmp eax, 0x2710
jae 0x1013069
push 0x1002fec
push esi
call fcn.01013512
cmp dword [ebp - 0x490], edi
pop ecx
pop ecx
jne 0x1012c92
mov dword [ebp - 0x494], esi
inc dword [ebp - 0x490]
xor esi, esi
push esi
push esi
push esi
push dword [ebp - 0x4a4]
push 0x1003120
call dword [ebp - 0x4e4]
cmp eax, esi
mov dword [ebp - 0x4a8], eax
je 0x1012a8d
push esi
push 0x80400200
push 3
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push 0x50
push dword [ebp - 0x478]
push eax
call dword [ebp - 0x4e0]
cmp eax, esi
mov dword [ebp - 0x488], eax
je 0x1012a8d
xor ebx, ebx
cmp dword [ebp - 0x4ac], esi
setne bl
jmp 0x1012daf
cmp dword [ebp - 0x468], 0
je 0x1012d1b
push dword [ebp - 0x468]
call dword [ebp - 0x4cc]
and dword [ebp - 0x468], 0
mov edi, dword [ebp + ebx*4 - 0x4bc]
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x4e8]
push dword [ebp - 0x484]
push dword [ebp - 0x474]
push edi
push 0
push dword [ebp - 0x488]
push eax
call fcn.01012671
mov esi, eax
test esi, esi
jl 0x1012bac
push 0
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x4c0]
push eax
push 0x20000013
push dword [ebp - 0x468]
mov dword [ebp - 0x46c], 4
call dword [ebp - 0x4d4]
test eax, eax
je 0x1012f45
mov esi, dword [ebp - 0x4c0]
cmp esi, 0xc8
je 0x1012db8
cmp esi, 0xce
je 0x1012db8
or esi, 0x80190000
test edi, edi
je 0x1012bac
inc ebx
cmp ebx, 2
jb 0x1012cff
xor esi, esi
cmp dword [ebp - 0x4ac], esi
jne 0x1012bac
xor edi, edi
push edi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x550]
push eax
push 0x4000000b
push dword [ebp - 0x468]
mov dword [ebp - 0x46c], 0x10
call dword [ebp - 0x4d4]
test eax, eax
je 0x1012f45
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x550]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push edi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x470]
push eax
push 0x20000005
push dword [ebp - 0x468]
mov dword [ebp - 0x46c], 4
call dword [ebp - 0x4d4]
test eax, eax
je 0x1012f45
push dword [ebp + 0x1c]
push dword [ebp - 0x484]
call fcn.01011d96
test eax, eax
je 0x10129ec
cmp dword [ebp - 0x4c4], edi
je 0x1012e68
mov dword [ebp - 0x490], 3
push dword [ebp - 0x48c]
lea eax, [ebp - 0x4f0]
push dword [ebp - 0x470]
push eax
call fcn.01011d46
test eax, eax
je 0x101303b
cmp dword [ebp + ebx*4 - 0x4bc], edi
mov eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x47c], eax
je 0x1012eb7
cmp dword [ebp - 0x468], edi
je 0x1012eb7
push dword [ebp - 0x468]
call dword [ebp - 0x4cc]
mov dword [ebp - 0x468], edi
lea eax, [ebp - 0x468]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x4e8]
push dword [ebp - 0x484]
push dword [ebp - 0x474]
push edi
push dword [ebp - 0x468]
push dword [ebp - 0x488]
push eax
call fcn.01012671
mov esi, eax
cmp esi, edi
jl 0x1012bac
cmp dword [ebp - 0x4b4], 0
je 0x1012f5c
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x468]
lea edi, [ebp - 0x4e8]
call fcn.01012755
xor ebx, ebx
test eax, eax
jl 0x1012f5e
cmp dword [ebp - 0x480], ebx
je 0x1012f5e
push 0x1002fd8
push dword [ebp - 0x480]
mov dword [ebp - 0x47c], ebx
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x1012f5e
mov esi, 0x8007000b
jmp 0x1012bac
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1012fd5
call esi
jmp 0x1012aa8
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1012f45
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x4a0]
push dword [ebp - 0x498]
push dword [ebp + 0x1c]
push dword [ebp - 0x484]
push dword [ebp + 0x2c]
push dword [ebp - 0x470]
push edi
push dword [ebp - 0x468]
push dword [ebp - 0x4d0]
call fcn.01011dcd
mov esi, eax
cmp esi, ebx
jge 0x1012fde
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1012bac
call esi
mov esi, eax
jmp 0x1012bac
push ebx
push ebx
lea eax, [ebp - 0x4f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4b0]
cmp eax, ebx
je 0x1013007
mov ecx, dword [ebp - 0x470]
mov dword [eax], ecx
cmp dword [ebp - 0x47c], ebx
je 0x1012bac
push dword [ebp - 0x48c]
call fcn.0101206f
mov esi, eax
test esi, esi
jl 0x1012bac
cmp esi, 1
jne 0x1013034
xor esi, esi
jmp 0x1012bac
mov esi, 0x8007000b
jmp 0x1012fc4
xor esi, esi
cmp dword [ebp - 0x498], edi
je 0x1012bac
push edi
push edi
push dword [ebp - 0x470]
push dword [ebp - 0x470]
push edi
push dword [ebp - 0x4a0]
call dword [ebp - 0x498]
jmp 0x1012bac
push eax
push 0x1002f98
push esi
call fcn.01013512
add esp, 0xc
cmp dword [ebp - 0x498], edi
je 0x1013097
push edi
push edi
push edi
push dword [ebp - 0x470]
push 2
push dword [ebp - 0x4a0]
call dword [ebp - 0x498]
cmp dword [ebp - 0x494], edi
jl 0x10130af
jmp 0x10130a9
cmp dword [ebp - 0x494], edi
jge 0x10130af
mov dword [ebp - 0x494], esi
cmp dword [ebp - 0x478], edi
je 0x10130cb
push dword [ebp - 0x478]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x474], edi
je 0x10130e7
push dword [ebp - 0x474]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x494]
jmp 0x10130f4
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100c0c3
leave
ret 0x28