Function at 0x40a0d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41759b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
lea eax, [esp + 0x28]
push 0x104
push eax
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40a3ed
push ebx
push ebp
push esi
push edi
mov byte [eax + 1], 0
mov edi, 0x41efb0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push 0x41efa4
push 0x41ef94
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x140]
push pe_nt_image_headers32
push edx
push 0x41fbcc
push 0x41ef88
push 0x41ef94
mov ebx, eax
xor esi, esi
call ebp
lea eax, [esp + 0x38]
lea ecx, [esp + 0x33c]
push eax
push pe_nt_image_headers32
push ecx
push 0x41fbcc
push 0x41ef7c
push 0x41ef94
call ebp
lea edx, [esp + 0x38]
lea eax, [esp + 0x23c]
push edx
push pe_nt_image_headers32
push eax
push 0x41fbcc
push 0x41ef70
push 0x41ef94
call ebp
cmp ebx, 2
jne 0x40a1f9
lea ecx, [esp + 0x38]
push ecx
push esi
push 0x41ef64
push 0x41ef94
call edi
mov esi, eax
jmp 0x40a38a
cmp ebx, 3
jne 0x40a3a6
mov edi, dword [esp + 0x550]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
push 0x41ef54
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a252
push 0x41ef40
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a252
push 0x41ef30
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a252
push 0x41ef18
push edi
call ebx
add esp, 8
test eax, eax
jne 0x40a252
xor ebx, ebx
jmp 0x40a3a6
mov edi, 0x41ef0c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 2
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x33c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41fbcc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x23c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41fbcc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x38]
push ecx
push 0
push 0x41eefc
push 0x41ef94
call edi
lea edx, [esp + 0x38]
mov esi, eax
push edx
push 0
push 0x41eeec
push 0x41ef94
call edi
mov edi, eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x440]
push 0x104
push ecx
push 0x41fbcc
push 0x41eedc
push 0x41ef94
call ebp
test edi, edi
je 0x40a38a
lea edx, [esp + 0x43c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40a38a
lea ecx, [esp + 0x14]
call fcn.0040c920
inc edi
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x54c], 0
call fcn.0040ca80
test al, al
jne 0x40a376
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x14]
push eax
call fcn.0040cd90
lea ecx, [esp + 0x14]
mov dword [esp + 0x548], 0xffffffff
call fcn.0040c9e0
test esi, esi
je 0x40a3a1
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40a3a6
mov ebx, 1
sub ebx, 0
mov eax, 1
je 0x40a3c4
dec ebx
je 0x40a3bd
dec ebx
jne 0x40a3c6
mov eax, 2
jmp 0x40a3c6
mov eax, 1
jmp 0x40a3c6
xor eax, eax
lea ecx, [esp + 0x23c]
push esi
push ecx
lea edx, [esp + 0x344]
lea ecx, [esp + 0x144]
push edx
push ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.00409a40
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
add esp, 0x53c
ret 4