Function at 0x41ae40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1811
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c9144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0041b8b0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [esi + 0x10]
mov byte [ebp - 4], 2
push eax
mov byte [esi + 0xc], 0
mov dword [ebp - 0x20], eax
call fcn.0041b8b0
lea eax, [esi + 0x14]
mov dword [ebp - 0x24], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
cmp eax, edi
jne 0x41aec4
cmp byte [ebp + 0x14], 0
jne 0x41b0fd
push 0x4bc098
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], edi
call fcn.0048ba70
lea edx, [ebp - 0x1c]
push edx
lea edi, [ebp + 0xc]
call fcn.0041b470
add esp, 4
mov bl, 5
mov byte [ebp - 4], bl
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0041be20
lea eax, [ebp - 0x14]
mov edi, esi
mov byte [ebp - 4], 6
call fcn.00417620
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41af15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41af38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
test ecx, ecx
je 0x41af5d
push 3
push SysReAllocString
mov edi, 0x80
push eax
lea ebx, [edi - 0x7d]
mov esi, ecx
call fcn.00417fa0
mov esi, dword [ebp + 8]
jmp 0x41af76
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41afa3
call fcn.00418010
test eax, eax
jns 0x41afa6
cmp byte [ebp + 0x14], 0
jne 0x41b0fd
push 0x4bc098
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], 0
call fcn.0048ba70
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push str.CompatibilityLevel
push str.FileInfo
call ebx
cmp eax, 0x44d
jae 0x41afe3
cmp byte [ebp + 0x14], 0
jne 0x41b0fd
push 0x4bc098
lea edx, [ebp + 0x14]
push edx
mov dword [ebp + 0x14], 0
call fcn.0048ba70
lea eax, [ebp - 0x10]
push eax
call fcn.0041b8b0
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x41b032
lea edx, [ebp + 0x14]
push edx
call fcn.0041be20
lea eax, [ebp + 0x14]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00417620
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x41b092
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20]
push eax
push ecx
push 0x4ab8d0
call fcn.00417250
mov edx, dword [edi]
mov edi, dword [ebp - 0x24]
add esp, 0xc
push 0x80
push 3
push edi
mov eax, 3
mov ecx, SysReAllocString
call fcn.00418030
test eax, eax
js 0x41b092
mov eax, dword [esi]
push eax
push 0
push str.CompatibilityLevel
push str.FileInfo
call ebx
cmp eax, 0x44d
jae 0x41b092
mov esi, edi
call fcn.00417690
mov esi, dword [ebp + 8]
push str.RightToLeft
push str.FileInfo
lea edx, [ebp - 0x18]
push edx
mov ebx, esi
call fcn.0041b1b0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00489e4e
add esp, 4
cmp eax, 1
jne 0x41b0bb
mov byte [esi + 0xc], al
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b0da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b0fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10