Function at 0x41d5a0
Capabilities:
Get common file path
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43a012
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xc
mov dword [esp + 0x18], esi
mov byte [esi + 0xf64], al
call fcn.0043052b
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0xf68], eax
mov dword [esi + 0xf6c], ebx
mov cl, byte [esp + 0x17]
push 0xc
mov dword [esp + 0x140], ebx
mov byte [esi + 0xf70], cl
call fcn.0043052b
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0xf74], eax
mov dword [esi + 0xf78], ebx
lea edi, [esi + 0xf80]
mov byte [esp + 0x138], 1
push edi
mov dword [esi], 0x441d3c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x2c]
push 0x104
mov dword [esi + 0x10], ebx
push edx
mov dword [esi + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x2c]
push 0x450e78
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
mov ebp, 1
push 0x44cfe8
push ecx
mov dword [esi + 0xf7c], ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push 0x14
push eax
push 0x44cfe8
push 0x450e5c
push 0x450e50
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
push ecx
call fcn.004311ac
mov dword [esi + 0xf7c], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0xc0c], ebx
mov dword [esi + 0x37c], ebx
mov byte [esi + 0xe60], bl
mov dword [esi + 0xe54], ebx
mov edx, dword [0x4573e8]
mov dword [esi + 0xe58], edx
mov dword [esi + 0xe5c], ebp
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x7cc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
add esp, 4
mov dword [esi + 0x24], ebx
mov ecx, esi
mov dword [0x45b274], ebp
call fcn.0041de30
mov dword [esi + 0x24], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov ecx, esi
mov dword [esi + 0x374], ebx
mov dword [esi + 0x36c], ebx
mov dword [esi + 0x370], ebx
call fcn.00420550
mov ecx, esi
call fcn.0041e060
mov ecx, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
call fcn.0041df10
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [0x457304]
cmp eax, ebx
jne 0x41d756
mov ecx, esi
call fcn.0041dea0
push ebx
mov dword [esi + 0x7ac], 0x14
mov dword [esi + 0x7b8], 0x64
mov dword [esi + 0x7d4], ebx
mov dword [esi + 0x378], ebx
mov dword [esi + 0x7dc], ebx
mov dword [esi + 0x7d0], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
cmp ebp, ebx
je 0x41d7d8
push 0xc
push ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebp
mov dword [esi + 0x7c0], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x14], eax
cdq
idiv dword [esi + 0x7ac]
test edx, edx
je 0x41d7ce
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x7ac]
cdq
dec ecx
idiv ecx
mov dword [esi + 0x7ac], ecx
test edx, edx
jne 0x41d7b6
push ebp
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x41d7e2
mov dword [esi + 0x7c0], 0x100
mov dword [esi + 0x7c8], ebx
mov dword [esi + 0xe50], 6
mov dword [esi + 0xc10], ebx
mov dword [esi + 0xc1c], ebx
mov dword [esi + 0xc20], ebx
mov dword [esi + 0xc24], ebx
mov dword [esi + 0xc28], ebx
mov dword [esi + 0xc2c], ebx
mov dword [esi + 0xc30], ebx
mov dword [esi + 0xc34], ebx
mov dword [esi + 0xc38], ebx
mov dword [esi + 0xc3c], ebx
mov byte [esi + 0xc44], bl
mov byte [esi + 0xd48], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x7c4], ebx
mov dword [esi + 0xe4c], ebx
mov eax, dword [0x45b74c]
push ebx
push ebx
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x130]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret