Function at 0x4082c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2f1a
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 - 0x284], ecx
mov ax, word [0x4defe0]
mov word [ebp - 0x26c], ax
push 0x4defe4
push 0x1f4
lea ecx, [ebp - 0x268]
push ecx
push 0x4dedfe
push 0x4deff0
push 0x4deff8
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 - 0x280]
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x280]
push edx
mov ecx, dword [ebp - 0x284]
add ecx, 0x94
call sub.mfc110.dll_Ordinal_7630
mov ecx, dword [ebp - 0x284]
add ecx, 0x110
call fcn.00402b67
cmp dword [ebp - 0x274], 0
je 0x408545
lea ecx, [ebp - 0x270]
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 0x4df00c
lea ecx, [ebp - 0x27c]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x274]
push eax
lea ecx, [ebp - 0x27c]
call dword [sym.imp.mfc110.dll_Ordinal_1687]
push 0x4df020
push 0x64
lea ecx, [ebp - 0x74]
push ecx
push 0x4dedff
push 0x4df02c
lea ecx, [ebp - 0x27c]
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 - 0x27c]
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 0x4df040
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 0x4df044
lea edx, [ebp - 0x270]
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 eax, [ebp - 0x280]
push eax
push 0x4df04c
call fcn.00401226
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4084d3
push 0
push 0x4df058
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_4595]
cmp eax, 0xffffffff
jne 0x4084f1
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 0x110
call fcn.00401e2e
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x26c]
push eax
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 - 0x27c]
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 - 0x270]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
jmp 0x40838a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
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