Function at 0x405f40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493ba9
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x4d13f4]
xor eax, ebp
mov dword [ebp - 0x70], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18c], ecx
lea ecx, [ebp - 0x180]
call fcn.004112b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004112b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040cba0
mov byte [ebp - 4], 2
mov al, byte [0x49dac6]
mov byte [ebp - 0x17c], al
push 0x103
push 0
lea ecx, [ebp - 0x17b]
push ecx
call fcn.0047ba50
add esp, 0xc
push 0xff
push 0
lea edx, [ebp - 0x17c]
push edx
call fcn.0047ba50
add esp, 0xc
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2fd4c0
call fcn.00411270
push eax
push 0x104
lea eax, [ebp - 0x17c]
push eax
push 0x49dac7
push 0x49dc48
push 0x49dc58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x17c]
push ecx
push 0x49dc60
lea edx, [ebp - 0x28]
push edx
call fcn.00411460
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00411270
push eax
call fcn.0047badb
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0x18c]
call fcn.0040a3d0
test eax, eax
jne 0x40607d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040cbf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.00403d20
jmp 0x4061f8
lea ecx, [ebp - 0x30]
call fcn.0040caf0
lea ecx, [ebp - 0x38]
call fcn.0040caf0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x18c]
call fcn.00409e00
test eax, eax
jne 0x40611a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], 0
push 0x49dace
lea ecx, [ebp - 0x54]
call fcn.00403d60
push 0x49dacf
lea ecx, [ebp - 0x48]
call fcn.00403d60
mov dword [ebp - 0x50], 0
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x184], esp
lea eax, [ebp - 0x64]
push eax
call fcn.0040cc40
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2fd5e8
call fcn.0040f170
jmp 0x4061ce
sub esp, 8
fld qword [ebp - 0x24]
fstp qword [esp]
push 0x49dc64
lea ecx, [ebp - 0x180]
push ecx
call fcn.00411460
add esp, 0x10
lea edx, [ebp - 0x180]
push edx
lea ecx, [ebp - 0x54]
call fcn.00403d40
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x194], edx
cmp dword [ebp - 0x194], 0
je 0x406178
cmp dword [ebp - 0x194], 1
je 0x406187
cmp dword [ebp - 0x194], 2
je 0x406196
jmp 0x4061a3
push 0x49dc6c
lea ecx, [ebp - 0x48]
call fcn.00403d60
jmp 0x4061a3
push 0x49dc74
lea ecx, [ebp - 0x48]
call fcn.00403d60
jmp 0x4061a3
push 0x49dc7c
lea ecx, [ebp - 0x48]
call fcn.00403d60
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x188], esp
lea eax, [ebp - 0x64]
push eax
call fcn.0040cc40
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x18c]
add ecx, 0x2fd5e8
call fcn.0040f170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040cbf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.00403d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.0047ac28
mov esp, ebp
pop ebp
ret 8