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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
and dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0xa
lea ecx, [ebp - 0xa8]
call fcn.0040b3d6
lea ecx, [ebp - 0x130]
call fcn.004212e8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00401028
pop ecx
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 1]
call fcn.00422285
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0042211f
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 8], 0
jne 0x424156
and dword [ebp - 0x20], 0
lea ecx, [ebp - 1]
call fcn.00422116
lea ecx, [ebp - 0x130]
call fcn.00420a38
lea ecx, [ebp - 0xa8]
call fcn.0040b447
mov eax, dword [ebp - 0x20]
jmp 0x424440
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x215a
push dword [ebp - 8]
push dword [ebp - 0x24]
call fcn.00421c2f
add esp, 0x10
push 0x20
call fcn.00401000
pop ecx
mov dword [ebp - 0xc], eax
push 0x20
push dword [ebp - 0xc]
call fcn.00404e39
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
push dword [ebp - 0xc]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x5601f4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xb7
je 0x4241bf
cmp dword [0x5601f4], 0
jne 0x4241e9
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 1]
call fcn.00422116
lea ecx, [ebp - 0x130]
call fcn.00420a38
lea ecx, [ebp - 0xa8]
call fcn.0040b447
mov eax, dword [ebp - 0x2c]
jmp 0x424440
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.MaxConnectionsPer1_0Server
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.MaxConnectionsPerServer
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xa8]
call fcn.0040b047
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x130]
call fcn.00421037
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x688]
call fcn.004097ac
lea ecx, [ebp - 0x1c]
call fcn.004203d2
push 0x208
push 0
lea eax, [ebp - 0x43c]
push eax
call fcn.0040132f
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x42a1e8
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0xa8]
call fcn.0040afa5
test eax, eax
je 0x424300
call fcn.0041e932
cmp eax, 1
je 0x424300
call fcn.0041df16
cmp eax, 0xa
jb 0x4242fb
call fcn.00421978
jmp 0x424300
call fcn.004218d5
lea ecx, [ebp - 0xa8]
call fcn.0040af96
test eax, eax
je 0x424329
call fcn.0041e932
cmp eax, 1
jne 0x424329
call fcn.00423aac
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x130]
call fcn.00404e64
test eax, eax
jne 0x4243e9
lea ecx, [ebp - 0xa8]
call fcn.0040affd
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xa8]
call fcn.0040b00c
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0xa8]
call fcn.0040b038
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x130]
call fcn.00420aaa
lea ecx, [ebp - 0xa8]
call fcn.0040b038
test eax, eax
je 0x4243c8
lea ecx, [ebp - 0x4c]
call fcn.00406f52
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x130]
call fcn.00404e73
mov dword [ebp - 0x44], eax
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
lea ecx, [ebp - 0x1c]
call fcn.00420351
lea ecx, [ebp - 0x48]
call fcn.00406be2
lea ecx, [ebp - 0x4c]
call fcn.00406be2
jmp 0x4243e7
lea ecx, [ebp - 0xa8]
call fcn.0040afb4
test eax, eax
je 0x4243dc
call fcn.00422291
lea ecx, [ebp - 0x688]
call fcn.004096e8
jmp 0x424408
lea ecx, [ebp - 0xa8]
call fcn.0040afb4
test eax, eax
je 0x4243fd
call fcn.00422291
lea ecx, [ebp - 0x688]
call fcn.004096e8
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x1c]
call fcn.00420425
lea ecx, [ebp - 0x688]
call fcn.0040920e
lea ecx, [ebp - 1]
call fcn.00422116
lea ecx, [ebp - 0x130]
call fcn.00420a38
lea ecx, [ebp - 0xa8]
call fcn.0040b447
mov eax, dword [ebp - 0x50]
leave
ret 0x10