Function at 0x411830
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d0a9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x586dc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 3
call fcn.0041460c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411880
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 0x18], 1
call fcn.0041460c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4118b2
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0041460c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4118df
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
call fcn.0042518d
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x411905
xor eax, eax
jmp 0x411919
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411910
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004014c0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x411947
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004012f0
mov esi, dword [ebp - 0x10]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00513673
add esp, 8
test eax, eax
js 0x411a14
cmp eax, dword [esi - 8]
jg 0x411a14
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.005145de
add esp, 8
test eax, eax
je 0x4119ce
sub eax, esi
cmp eax, 0xffffffff
je 0x4119ce
inc eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401d90
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00401f80
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4119ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xb
push str.Setting.ini
lea ecx, [ebp - 0x10]
call fcn.00401ec0
cmp byte [ebp + 0xc], 0
je 0x411a0d
push str.newline
push 0x53bea8
lea ecx, [ebp + 0x14]
call fcn.00404380
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x14]
push edi
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x411a8b
mov esi, dword [ebp + 0x1c]
test esi, esi
jns 0x411a1e
push 0x80070057
call fcn.00401000
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x411a39
push esi
mov ecx, ebx
call fcn.004012f0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x10]
push edi
push esi
mov esi, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x411a6a
push ecx
push eax
call fcn.00513673
add esp, 8
test eax, eax
js 0x411a14
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x411a14
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
push 0x53bea8
push str.newline
mov ecx, ebx
mov byte [eax + edx], 0
call fcn.00404380
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411aab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411acb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411aee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret