Function at 0x413435
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64c
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x18], 0xa
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], ebx
call fcn.00405bf1
lea ecx, [esp + 0x80]
call fcn.00411638
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004010ad
mov dword [esp], 0x104
lea eax, [esp + 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x100]
call fcn.00411e21
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4136ad
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push 0x215a
mov ecx, eax
call fcn.00411bf8
push 0x20
pop esi
push esi
call fcn.00401085
mov edi, eax
add esp, 0xc
mov ecx, edi
mov byte [ecx], bl
inc ecx
sub esi, 1
jne 0x4134ce
push 4
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0040102c
add esp, 0xc
push edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4198b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4136ad
cmp dword [0x4198b8], ebx
je 0x4136ad
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push ebx
push str.MaxConnectionsPer1_0Server
push dword [esp + 0x24]
call esi
push 4
lea eax, [esp + 0x20]
push eax
push 4
push ebx
push str.MaxConnectionsPerServer
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
call fcn.00405a10
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x84]
call fcn.004114a6
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x418]
call fcn.00404ee7
push 0x208
lea eax, [esp + 0x20c]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea eax, [esp + 0x208]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x6c], ebx
je 0x413613
call fcn.0040fbfc
cmp eax, 1
je 0x413613
call fcn.0040f51d
cmp eax, 0xa
jne 0x41360e
call fcn.00411ab9
jmp 0x413613
call fcn.00411a3c
cmp dword [esp + 0x70], ebx
je 0x413628
call fcn.0040fbfc
cmp eax, 1
jne 0x413628
call fcn.00412fd7
cmp dword [esp + 0xa4], ebx
jne 0x41368a
push dword [esp + 0x74]
lea ecx, [esp + 0x84]
push dword [esp + 0x54]
push dword [esp + 0x50]
call fcn.00411136
cmp dword [esp + 0x48], ebx
je 0x41368a
lea eax, [esp + 0xa0]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040362d
push ecx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
call fcn.00410bd9
mov ecx, dword [esp + 0x20]
call fcn.00405ea5
xor ecx, ecx
call fcn.00405ea5
jmp 0x4136a1
cmp dword [esp + 0x68], ebx
je 0x413695
call fcn.00411f13
lea ecx, [esp + 0x410]
call fcn.00404e5b
lea ecx, [esp + 0x410]
call fcn.00404bc0
lea ecx, [esp + 0x80]
call fcn.004110d7
lea ecx, [esp + 0x30]
call fcn.00405c16
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8