Function at 0x408580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x27c], ecx
mov ax, word [0x4df05c]
mov word [ebp - 0x26c], ax
push 0x4df060
push 0x1f4
lea ecx, [ebp - 0x268]
push ecx
push 0x4dee16
push 0x4df070
push 0x4df078
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x29c], eax
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x268]
push ecx
call dword [sym.imp.MSVCR110.dll_strtok_s]
add esp, 0xc
mov dword [ebp - 0x274], eax
lea ecx, [ebp - 0x284]
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x284]
push edx
mov ecx, dword [ebp - 0x27c]
add ecx, 0x94
call sub.mfc110.dll_Ordinal_7630
mov ecx, dword [ebp - 0x27c]
add ecx, 0x110
call fcn.00402b67
cmp dword [ebp - 0x274], 0
je 0x4087d2
lea ecx, [ebp - 0x280]
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov byte [ebp - 4], 2
push 0x4df08c
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x274]
push eax
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_1687]
push 0x4df0a0
push 0x64
lea ecx, [ebp - 0x74]
push ecx
push 0x4dee17
push 0x4df0b0
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_4978]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x298], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_12336]
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc110.dll_Ordinal_1520]
mov eax, dword [ebp - 0x274]
push eax
push 0
push 0x4df0c4
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc110.dll_Ordinal_4595]
add eax, 1
push eax
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc110.dll_Ordinal_8570]
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x294], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x294]
mov ecx, dword [eax]
push ecx
push 0x4df0c8
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.mfc110.dll_Ordinal_4746]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x290]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
lea ecx, [ebp - 0x280]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
mov ecx, dword [ebp - 0x27c]
add ecx, 0x110
call fcn.00401e2e
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push 0
call dword [sym.imp.MSVCR110.dll_strtok_s]
add esp, 0xc
mov dword [ebp - 0x274], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x280]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
jmp 0x40864a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5ffc
mov esp, ebp
pop ebp
ret