Function at 0x415b40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41f418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x424038]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
lea ebp, [edi + 0x390]
mov dword [esp + 0x2c], 0
push ebp
call fcn.0041ae90
add esp, 4
test al, al
je 0x415d0f
mov eax, dword [ebp]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x415ba6
mov edx, dword [eax - 4]
test edx, edx
jge 0x415c03
mov esi, dword [eax - 8]
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x415bb3
mov ecx, esi
push ecx
mov ecx, ebp
call fcn.00410180
test eax, eax
jne 0x415bc5
mov dword [esp + 0x1c], eax
jmp 0x415c0e
mov edi, dword [ebp]
lea ecx, [esi + 1]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1c]
mov dword [eax - 8], ecx
mov eax, dword [0x42403c]
cmp ebx, eax
je 0x415c03
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415c03
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x14]
mov ecx, 0x100
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x415c27
cmp dword [eax - 4], ecx
jge 0x415c86
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x20], esi
jle 0x415c34
mov ecx, esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00410180
test eax, eax
je 0x415c8a
mov edi, dword [esp + 0x14]
lea ecx, [esi + 1]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x20]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], edx
mov eax, dword [0x42403c]
cmp ebx, eax
je 0x415c82
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415c82
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
push 0x100
push eax
push 0
push 0x420970
push 0x42096c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00410210
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x14]
mov ecx, ebp
mov byte [eax + edx], 0
call fcn.00410210
mov eax, dword [ebp]
push eax
call ebx
mov ecx, dword [ebp]
test esi, esi
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov byte [eax + edx], 0
je 0x415d0f
mov eax, dword [esp + 0x14]
push 0x420518
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x415d07
mov byte [esp + 0x13], al
test esi, esi
je 0x415d0f
xor edx, edx
jmp 0x415d14
mov edx, 1
mov al, byte [esp + 0x13]
mov byte [edi + 0xe4], dl
test al, al
je 0x415dea
mov eax, dword [edi + 0xb0]
xor esi, esi
cmp eax, esi
je 0x415d5e
mov ecx, dword [eax + 0x10]
cmp ecx, 0x14
jge 0x415d5e
lea ecx, [ecx + ecx*2]
mov dword [eax + ecx*4 + 0x14], esi
mov ecx, dword [eax + 0x10]
add ecx, 2
lea ecx, [ecx + ecx*2]
mov byte [eax + ecx*4], dl
mov ecx, dword [eax + 0x10]
lea edx, [ecx + ecx*2]
mov dword [eax + edx*4 + 0x1c], esi
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [eax + 0x10], ecx
mov eax, dword [ebp]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x415d73
cmp dword [eax - 4], esi
jge 0x415db3
mov esi, dword [eax - 8]
test esi, esi
mov dword [esp + 0x20], esi
jle 0x415d80
mov ecx, esi
push ecx
mov ecx, ebp
call fcn.00410180
test eax, eax
je 0x415db6
mov edi, dword [ebp]
lea ecx, [esi + 1]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x20]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], edx
call fcn.004101e0
mov eax, dword [ebp]
push eax
push 0x420518
push 0x420970
push 0x42096c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, ebp
call fcn.00410210
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp]
mov dword [ecx - 8], eax
mov edx, dword [ebp]
mov byte [edx + eax], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040e080
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret