Function at 0x41140b
Capabilities:
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
cmp dword [0x43ec7c], 0x54a
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x10], esi
mov ebx, dword [esi]
jne 0x41145a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push dword [ebp - 0x10]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [0x43ec7c], 0x1333
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
jne 0x411478
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorControl]
cmp dword [0x43ec7c], 0x1261
mov dword [ebp - 8], 0xc6ef3720
jne 0x411493
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x43ec7c], 0x1239
jne 0x4114c3
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
mov edi, 0xc6ef3720
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x20
mov eax, ebx
shl eax, 4
add eax, ecx
cmp dword [0x43ec7c], 0x1026
mov dword [ebp - 4], eax
jne 0x411559
and dword [ebp - 0x50], 0
lea edi, [ebp - 0x4c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
xor edi, edi
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x484]
push eax
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0x34
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00401f80
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
mov edi, dword [ebp - 8]
mov ecx, ebx
lea eax, [edi + ebx]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor ecx, eax
xor ecx, dword [ebp - 4]
sub esi, ecx
cmp dword [0x43ec7c], 0x2d9
jne 0x41159b
xor ecx, ecx
lea eax, [ebp - 0x38]
push eax
push ecx
lea eax, [ebp - 0x884]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_GetPrivateObjectSecurity]
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
lea eax, [edi + esi]
mov edi, esi
mov dword [ebp - 0x20], eax
shr edi, 5
cmp dword [0x43ec7c], 0xb0b
jne 0x4115ce
push 0
lea eax, [ebp - 0x484]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add edi, dword [ebp - 0x1c]
cmp dword [0x43ec7c], 0xd6
jne 0x4115e5
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFix]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0x20]
cmp dword [0x43ec7c], 0x12e
mov dword [ebp - 4], eax
jne 0x411621
push 0
call dword [sym.imp.KERNEL32.dll_FatalExit]
mov ecx, dword [ebp - 0x24]
xor edi, eax
sub ebx, edi
mov edi, dword [ebp - 8]
add edi, 0x61c88647
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
jne 0x4114e9
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret