Function at 0x41b410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0581
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
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.0041bb70
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.0041bb70
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 0x41b494
cmp byte [ebp + 0x14], 0
jne 0x41b6cd
push 0x4b98e8
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], edi
call fcn.0048a3a0
lea edx, [ebp - 0x1c]
push edx
lea edi, [ebp + 0xc]
call fcn.0041ba40
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.0041bf30
lea eax, [ebp - 0x14]
mov edi, esi
mov byte [ebp - 4], 6
call fcn.00417130
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 0x41b4e5
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 0x41b508
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 0x41b52d
push 3
push Ordinal_4
mov edi, 0x80
push eax
lea ebx, [edi - 0x7d]
mov esi, ecx
call fcn.00418280
mov esi, dword [ebp + 8]
jmp 0x41b546
push 0
push 0x80
push 3
push 0
push 3
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41b573
call fcn.004182f0
test eax, eax
jns 0x41b576
cmp byte [ebp + 0x14], 0
jne 0x41b6cd
push 0x4b98e8
lea ecx, [ebp + 0x14]
push ecx
mov dword [ebp + 0x14], 0
call fcn.0048a3a0
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, 0x1622
jae 0x41b5b3
cmp byte [ebp + 0x14], 0
jne 0x41b6cd
push 0x4b98e8
lea edx, [ebp + 0x14]
push edx
mov dword [ebp + 0x14], 0
call fcn.0048a3a0
lea eax, [ebp - 0x10]
push eax
call fcn.0041bb70
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x41b602
lea edx, [ebp + 0x14]
push edx
call fcn.0041bf30
lea eax, [ebp + 0x14]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00417130
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 0x41b602
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 0x41b662
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x20]
push eax
push ecx
push 0x4a9990
call fcn.00417b50
mov edx, dword [edi]
mov edi, dword [ebp - 0x24]
add esp, 0xc
push 0x80
push 3
push edi
mov eax, 3
mov ecx, Ordinal_4
call fcn.00418310
test eax, eax
js 0x41b662
mov eax, dword [esi]
push eax
push 0
push str.CompatibilityLevel
push str.FileInfo
call ebx
cmp eax, 0x1622
jae 0x41b662
mov esi, edi
call fcn.00417c50
mov esi, dword [ebp + 8]
push str.RightToLeft
push str.FileInfo
lea edx, [ebp - 0x18]
push edx
mov ebx, esi
call fcn.0041b780
mov eax, dword [ebp - 0x18]
push eax
call fcn.00488a4c
add esp, 4
cmp eax, 1
jne 0x41b68b
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 0x41b6aa
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 0x41b6cd
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 0x41b6f3
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