Function at 0x10059de0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb54
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0xb50], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push 0x103
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x2d]
push 0
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov byte [esp + 0x34], 0
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.10042f40
add esp, 8
cmp byte [esp + 0x28], 0
je 0x10059e7e
test edi, edi
je 0x10059e7e
push 2
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.1010e100
add esp, 0xc
cmp byte [edi + 1], 0
je 0x10059e7a
mov byte [edi + 2], 0
mov byte [edi + 2], 0
test esi, esi
je 0x10059eb1
push str.PathWWWRoot
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftInetStp
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.100315c0
cmp byte [esi], 0
je 0x10059eb1
call fcn.10049c80
mov esi, dword [esp + 0x14]
test esi, esi
je 0x10059f1c
push str.ProgramFilesDir
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersion
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.100315c0
cmp byte [esi], 0
je 0x10059f1c
push esi
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x130]
push 0x20
push ecx
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10059f17
mov byte [eax], 0
lea eax, [esp + 0x130]
call fcn.10033960
call fcn.10049c80
test ebx, ebx
je 0x10059f71
push str.CommonFilesDir
lea eax, [esp + 0x10]
mov edi, ebx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersion
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0x104
mov byte [ebx], 0
call fcn.100315c0
cmp byte [ebx], 0
jne 0x10059f6a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, ebx
call fcn.10049c40
push str.Common_Files
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebx], 0
je 0x10059f71
mov esi, ebx
call fcn.10049c80
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10059fb9
push str.AppData
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, closesocket
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.100315c0
cmp byte [esi], 0
jne 0x10059fb4
push 0x1a
mov ecx, esi
call fcn.10059950
add esp, 4
cmp byte [esi], 0
je 0x10059fb9
call fcn.10049c80
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1005a001
push str.Favorites
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, closesocket
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.100315c0
cmp byte [esi], 0
jne 0x10059ffc
push 6
mov ecx, esi
call fcn.10059950
add esp, 4
cmp byte [esi], 0
je 0x1005a001
call fcn.10049c80
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1005a049
push str.Desktop
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, closesocket
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.100315c0
cmp byte [esi], 0
jne 0x1005a044
push 0x10
mov ecx, esi
call fcn.10059950
add esp, 4
cmp byte [esi], 0
je 0x1005a049
call fcn.10049c80
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1005a091
push str.Programs
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, closesocket
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.100315c0
cmp byte [esi], 0
jne 0x1005a08c
push 2
mov ecx, esi
call fcn.10059950
add esp, 4
cmp byte [esi], 0
je 0x1005a091
call fcn.10049c80
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1005a10a
push str.Common_Programs
lea eax, [esp + 0x10]
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0x104
mov byte [edi], 0
call fcn.100315c0
cmp byte [edi], 0
je 0x1005a0ca
call fcn.10044b00
test eax, eax
jne 0x1005a0fe
push edi
mov ebx, str.Common_Programs
mov byte [edi], 0
call fcn.10058320
add esp, 4
cmp byte [edi], 0
je 0x1005a10a
call fcn.10044b00
cmp eax, 1
jne 0x1005a0fe
mov edx, edi
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.100312a0
cmp byte [edi], 0
je 0x1005a10a
mov esi, edi
call fcn.10049c80
mov ecx, dword [esp + 0xb5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret