Function at 0x408ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493ee7
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4d13f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x35c], ecx
lea ecx, [ebp - 0x120]
call fcn.004112b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.004112b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.004112b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x35c]
cmp dword [eax + 0x2fd64c], 2
je 0x408b4c
mov ecx, dword [ebp - 0x35c]
cmp dword [ecx + 0x2fd64c], 3
je 0x408b4c
mov edx, dword [ebp - 0x35c]
cmp dword [edx + 0x2fd64c], 4
jne 0x4091b7
push 0xff
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0047ba50
add esp, 0xc
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0x49db39
push str.KDataIndex
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x114]
push edx
push 0x49df5c
lea eax, [ebp - 0x120]
push eax
call fcn.00411460
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.00403da0
test eax, eax
jne 0x408c15
push 0
push 0
push 0x49df60
mov ecx, dword [ebp - 0x35c]
call fcn.0044ea0c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403d20
jmp 0x4091e7
lea ecx, [ebp - 0x120]
call fcn.00411270
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x35c]
call fcn.00406470
mov ecx, dword [ebp - 0x35c]
add ecx, 0x98
call fcn.0040cb20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x11c], 0
jmp 0x408c69
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp - 0x10]
jge 0x408cc7
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x35c]
add ecx, 0x98
call fcn.00444fe0
push eax
lea ecx, [ebp - 0x124]
call fcn.00403d40
push ecx
mov ecx, esp
mov dword [ebp - 0x358], esp
lea edx, [ebp - 0x124]
push edx
call fcn.004112d0
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x35c]
call fcn.0040a8c0
jmp 0x408c5a
push 0xff
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.0047ba50
add esp, 0xc
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0x49db3a
push str.KLineIndex
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x114]
push eax
push 0x49df80
lea ecx, [ebp - 0x120]
push ecx
call fcn.00411460
add esp, 0xc
lea ecx, [ebp - 0x120]
call fcn.00403da0
test eax, eax
jne 0x408d90
push 0
push 0
push 0x49df84
mov ecx, dword [ebp - 0x35c]
call fcn.0044ea0c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403d20
jmp 0x4091e7
lea ecx, [ebp - 0x120]
call fcn.00411270
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x350], 0
lea ecx, [ebp - 0x12c]
call fcn.004112b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.004112b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x130]
push edx
push 0x49df98
lea eax, [ebp - 0x12c]
push eax
call fcn.00411460
add esp, 0xc
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x34c]
push ecx
push 0
lea ecx, [ebp - 0x12c]
call fcn.00411270
push eax
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x409199
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd5d4
call fcn.0040eae0
lea edx, [ebp - 0x34c]
push edx
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0xffffffff
jne 0x408f10
mov eax, dword [ebp - 0x130]
push eax
push 0x49dfa0
lea ecx, [ebp - 0x128]
push ecx
call fcn.00411460
add esp, 0xc
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea edx, [ebp - 0x23c]
push edx
push 0
lea ecx, [ebp - 0x128]
call fcn.00411270
push eax
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x23c]
push eax
push 0x49dfa8
lea ecx, [ebp - 0x128]
push ecx
call fcn.00411460
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x128]
call fcn.00411270
push eax
mov ecx, dword [ebp - 0x35c]
call fcn.0044ea0c
jmp 0x408fc6
push 0
mov edx, dword [ebp - 0x354]
push edx
push 0x111
mov eax, dword [ebp - 0x35c]
mov ecx, dword [eax + 0x2fd4b4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x130]
push edx
push str.time_d
lea eax, [ebp - 0x128]
push eax
call fcn.00411460
add esp, 0xc
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
push 0
lea ecx, [ebp - 0x128]
call fcn.00411270
push eax
mov ecx, dword [ebp - 0x35c]
add ecx, 0x2fd4b8
call fcn.00411270
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x23c]
push edx
push 0x49dfd4
lea eax, [ebp - 0x128]
push eax
call fcn.00411460
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x128]
call fcn.00411270
push eax
mov ecx, dword [ebp - 0x35c]
call fcn.0044ea0c
mov ecx, dword [ebp - 0x35c]
fldz
fstp qword [ecx + 0x2fd624]
mov edx, dword [ebp - 0x35c]
fldz
fstp qword [edx + 0x2fd62c]
cmp dword [ebp - 0x134], 1
jne 0x409005
mov eax, dword [ebp - 0x35c]
mov ecx, dword [eax + 0x2fd4ac]
push ecx
mov ecx, dword [ebp - 0x35c]
call fcn.0040af00
jmp 0x40901d
mov edx, dword [ebp - 0x35c]
mov eax, dword [edx + 0x2fd4b0]
push eax
mov ecx, dword [ebp - 0x35c]
call fcn.0040af00
mov ecx, dword [ebp - 0x35c]
fldz
fcomp qword [ecx + 0x2fd624]
fnstsw ax
test ah, 1
je 0x409047
mov edx, dword [ebp - 0x35c]
fldz
fcomp qword [edx + 0x2fd62c]
fnstsw ax
test ah, 1
jne 0x4090ae
push 0
push 0
push 0x49dff8
mov ecx, dword [ebp - 0x35c]
call fcn.0044ea0c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.00403d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403d20
jmp 0x4091e7
cmp dword [ebp - 0x240], 1
jne 0x4090d7
mov eax, dword [ebp - 0x35c]
mov ecx, dword [eax + 0x2fd4ac]
push ecx
mov ecx, dword [ebp - 0x35c]
call fcn.00407260
mov dword [ebp - 0x350], eax
jmp 0x4090f5
mov edx, dword [ebp - 0x35c]
mov eax, dword [edx + 0x2fd4b0]
push eax
mov ecx, dword [ebp - 0x35c]
call fcn.00407260
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
jne 0x409151
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.00403d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403d20
jmp 0x4091e7
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x354]
push edx
mov ecx, dword [ebp - 0x35c]
call fcn.00405f40
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
push str.cmd_d
lea edx, [ebp - 0x12c]
push edx
call fcn.00411460
add esp, 0xc
jmp 0x408df7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
call fcn.00403d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00403d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x124]
call fcn.00403d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047ac28
mov esp, ebp
pop ebp
ret