Function at 0x401127
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.0040a78e
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0x18], 0
push VariantClear
push 0
push 0x486ddf
push 1
mov ebx, 0x40ac90
call fcn.0040a7a6
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4011a7
push ebx
call fcn.0040a788
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x486de8
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x486dea
push dword [ebp - 4]
push str.Cookie:
mov ecx, 5
call fcn.004010a4
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4011e6
push ebx
call fcn.0040a788
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 0
call fcn.0040a7a0
cmp dword [ebp - 0x1c], esp
je 0x40120c
push 6
call fcn.0040a79a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4012b6
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40122c
mov eax, 0x486df4
push eax
push 1
mov ebx, 0x40b160
call fcn.0040a7a6
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x486de8
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x486dea
push dword [ebp - 0x1c]
push str.Cookie:
mov ecx, 5
call fcn.004010a4
add esp, 0x14
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401279
push ebx
call fcn.0040a788
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40128d
push ebx
call fcn.0040a788
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 0
call fcn.0040a7a0
cmp dword [ebp - 0x1c], esp
je 0x4012b3
push 6
call fcn.0040a79a
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 1
jne 0x401461
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push 0x486df5
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4012f3
mov eax, 0x486df4
push eax
push 4
mov ebx, 0x40afc0
call fcn.0040a7a6
add esp, 0x34
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fsub qword [0x486df7]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401100
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x401340
mov eax, 0x486df4
push eax
push 2
mov ebx, 0x40acb0
call fcn.0040a7a6
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40136a
push ebx
call fcn.0040a788
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push VariantClear
push 0
push 0x486dff
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x40d7d0
call fcn.0040a7a6
add esp, 0x28
mov dword [ebp - 0x1c], eax
push 0x486e48
push dword [ebp - 8]
push 0x486dea
push dword [ebp - 4]
push 0x486e4e
push dword [ebp - 0x1c]
mov ecx, 6
call fcn.004010a4
add esp, 0x18
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4013d9
push ebx
call fcn.0040a788
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4013ed
push ebx
call fcn.0040a788
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push VariantClear
push 0
push str.scripting.FileSystemObject
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x40dcd0
call fcn.0040a7a6
add esp, 0x28
test eax, eax
je 0x401461
push 0xa0000004
push 0
lea eax, [ebp - 0x10]
push eax
push VariantClear
push 0
push str.DeleteFile
push 0x10030
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x40db50
call fcn.0040a7a6
add esp, 0x28
mov dword [ebp - 0xc], 2
cmp dword [ebp - 0xc], 1
jne 0x401472
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0xc], 2
jne 0x401483
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0xc], 0
jne 0x401494
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
jmp 0x40149c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4014ad
push ebx
call fcn.0040a788
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4014bd
push ebx
call fcn.0040a788
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4014cd
push ebx
call fcn.0040a788
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x40dcc0
call fcn.0040a7a6
add esp, 0x10
call fcn.0040a788
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc