Function at 0x41db30
Capabilities:
Create thread
Get common file path
Read .ini file
Resume thread

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push esi
push edi
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0x10]
push 0x469570
push ecx
call fcn.0042f1f0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 1
push 0x473414
push 0x46954c
call edi
mov dword [esi + 0x2ca8], eax
lea eax, [esp + 0xc]
push eax
push 1
push 0x4733fc
push 0x46954c
call edi
test eax, eax
mov dword [esi + 0x2c64], eax
jne 0x41dba7
mov dword [esi + 0x2c78], 1
mov eax, dword [esi + 0x2c78]
test eax, eax
jne 0x41dbca
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x4733e0
push 0x46954c
call edi
mov dword [esi + 0x2c78], eax
lea edx, [esp + 0xc]
push edx
push 1
push 0x4733c8
push 0x46954c
call edi
mov dword [esi + 0x2c5c], eax
mov eax, dword [esi + 0x2c7c]
test eax, eax
jne 0x41dc0f
call fcn.004457a0
test eax, eax
jne 0x41dc0f
lea eax, [esp + 0xc]
push eax
push 0
push 0x4733ac
push 0x46954c
call edi
mov dword [esi + 0x2c7c], eax
mov eax, dword [0x481a98]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41dd0d
call fcn.004457a0
test eax, eax
jne 0x41dc3a
mov ecx, esi
call fcn.00422fd0
mov eax, dword [0x481a98]
test eax, eax
jne 0x41dd0d
call fcn.00445640
test eax, eax
je 0x41dc57
mov ecx, esi
call fcn.00423b80
mov eax, dword [0x481a98]
test eax, eax
jne 0x41dd0d
mov ecx, esi
call fcn.00428990
mov ecx, esi
call fcn.00428250
mov eax, dword [0x481a98]
test eax, eax
jne 0x41dd0d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x384], eax
mov eax, dword [0x481a98]
test eax, eax
jne 0x41dd0d
lea ecx, [esp + 0x10]
push ecx
push 4
push esi
push 0x423df0
push 0
push 0
call fcn.0045233c
mov edi, eax
add esp, 0x18
test edi, edi
je 0x41dce0
push 2
push 0
lea edx, [esi + 0x24]
push 0
push edx
call ebx
push eax
push edi
call ebx
push eax
call ebp
test eax, eax
push edi
je 0x41dcda
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x481a98]
test eax, eax
jne 0x41dd0d
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x423ec0
push 0
push 0
call fcn.0045233c
add esp, 0x18
test eax, eax
je 0x41dd0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00421bf0
mov eax, dword [0x481a98]
test eax, eax
jne 0x41dd61
call fcn.00445710
test eax, eax
je 0x41dd61
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push 0x4391e0
push 0
push 0
call fcn.0045233c
mov edi, eax
add esp, 0x18
test edi, edi
je 0x41dd61
push 2
push 0
lea edx, [esi + 0x38]
push 0
push edx
call ebx
push eax
push edi
call ebx
push eax
call ebp
push edi
test eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041e650
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x41ddc2
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x110c], eax
mov dword [esi + 0x1694], eax
call ebx
mov ecx, eax
cdq
idiv dword [esi + 0xed0]
test edx, edx
je 0x41ddb7
mov edx, dword [esi + 0xed0]
mov eax, ecx
dec edx
mov dword [esi + 0xed0], edx
mov ebx, edx
cdq
idiv ebx
test edx, edx
jne 0x41dd9f
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x41ddcc
mov dword [esi + 0x110c], 8
mov eax, dword [0x481a98]
pop ebp
test eax, eax
pop ebx
jne 0x41de00
mov ecx, esi
call fcn.00422640
mov eax, dword [0x481a98]
test eax, eax
jne 0x41de00
call fcn.00445b80
test eax, eax
je 0x41de00
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x1114], 1
call dword [eax]
pop edi
pop esi
add esp, 0x108
ret