Function at 0x402987
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4029a5
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Temp
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402a09
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402a19
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402a4c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.Temp
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402a61
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.WinDir
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402ac5
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402ad5
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402b08
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.WinDir
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402b1d
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.USERPROFILE
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402b81
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402b91
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402bc4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.USERPROFILE
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402bd9
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ALLUSERSPROFILE
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402c3d
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c4d
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402c80
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ALLUSERSPROFILE
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402c95
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ProgramFiles
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402cf9
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402d09
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402d3c
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ProgramFiles
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402d51
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.CommonProgramFiles
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402db5
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402dc5
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402df8
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.CommonProgramFiles
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402e0d
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SystemDrive
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402e71
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402e81
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x402eb4
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.SystemDrive
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x403168
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402ec9
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.System32
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402f2d
push ebx
call fcn.0042a202
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402f3d
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x403043
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ComSpec
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.ComSpec
push 1
mov ebx, 0x42a7f0
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4bdc3f
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402fba
mov eax, 0x4bdbbc
push eax
push 4
mov ebx, 0x42aa00
call fcn.0042a208
add esp, 0x34
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402fe0
push ebx
call fcn.0042a202
add esp, 4
fild dword [ebp - 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x4bdcdd]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401755
push 0x80000301
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403015
mov eax, 0x4bdbbc
push eax
push 2
mov ebx, 0x42a810
call fcn.0042a208
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40303b
push ebx
call fcn.0042a202
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x403168
push 0x80000301
push 0
push 6
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x403064
mov eax, 0x4bdbbc
push eax
push 2
mov ebx, 0x42a810
call fcn.0042a208
add esp, 0x1c
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40308d
mov eax, 0x4bdbbc
push eax
push 1
mov ebx, 0x42ab80
call fcn.0042a208
add esp, 0x10
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4030b3
push ebx
call fcn.0042a202
add esp, 4
push 0x4bdce5
push dword [ebp - 8]
call fcn.00401021
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4030e1
push ebx
call fcn.0042a202
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4030f5
mov eax, 4
jmp 0x4030fa
mov eax, 3
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
mov ecx, 2
call fcn.004016f9
add esp, 8
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x403130
mov eax, 0x4bdbbc
push eax
push 0x80000301
push 0
push dword [ebp - 0x10]
push 3
mov ebx, 0x42ba40
call fcn.0042a208
add esp, 0x28
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403160
push ebx
call fcn.0042a202
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x403168
mov esp, ebp
pop ebp
ret 4