Function at 0x409700
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41744b
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 0x409a2b
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 0x409829
lea ecx, [esp + 0x38]
push ecx
push esi
push 0x41ef64
push 0x41ef94
call edi
mov esi, eax
jmp 0x4099c8
cmp ebx, 3
jne 0x4099e4
mov edx, dword [esp + 0x10]
push 0x41ef54
lea edi, [edx + 0x10]
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409890
push 0x41ef40
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409890
push 0x41ef30
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409890
push 0x41ef24
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409890
push 0x41ef18
mov ecx, edi
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x409890
xor ebx, ebx
jmp 0x4099e4
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 0x4099c8
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 0x4099c8
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 0x4099b4
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 0x4099df
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4099e4
mov ebx, 1
sub ebx, 0
mov eax, 1
je 0x409a02
dec ebx
je 0x4099fb
dec ebx
jne 0x409a04
mov eax, 2
jmp 0x409a04
mov eax, 1
jmp 0x409a04
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