Function at 0x404500
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40666d
mov eax, dword fs:[0]
push eax
mov eax, 0x12a0
call fcn.004062b0
mov eax, dword [0x409018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x127c]
call fcn.00401290
xor eax, eax
mov dword [ebp - 0x1060], 7
mov dword [ebp - 0x1064], 0
mov word [ebp - 0x1074], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], eax
mov word [ebp - 0x102c], ax
mov dword [ebp - 0x1030], 7
mov dword [ebp - 0x1034], eax
mov word [ebp - 0x1044], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x1280], 0xf
mov dword [ebp - 0x1284], eax
mov byte [ebp - 0x1294], al
cmp byte [esi], al
jne 0x4045b0
xor ecx, ecx
jmp 0x4045be
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4045b5
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1294]
call fcn.00401a80
push ecx
lea edx, [ebp - 0x1294]
lea ecx, [ebp - 0x12ac]
mov byte [ebp - 4], 3
call fcn.00402910
add esp, 4
lea ecx, [ebp - 0x1074]
push eax
call fcn.004016d0
cmp dword [ebp - 0x1298], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x40460a
push dword [ebp - 0x12ac]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1280], 0x10
mov dword [ebp - 0x1298], 7
mov dword [ebp - 0x129c], 0
mov word [ebp - 0x12ac], ax
jb 0x40463f
push dword [ebp - 0x1294]
call esi
add esp, 4
cmp dword [ebp - 0x1064], 1
jbe 0x404a78
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push eax
call sub.MSVCR110.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [ebp - 0x127c]
push eax
push 0x800
lea eax, [ebp - 0x1014]
push eax
push 0x407274
push str.HP_Def
push 0x407338
call edi
cmp word [ebp - 0x1014], 0
jne 0x4046a2
xor ecx, ecx
jmp 0x4046bf
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
jmp 0x4046b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4046b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00401b80
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x127c]
push eax
push 0x800
lea eax, [ebp - 0x1014]
push eax
push 0x407274
push str.DS_Def
push 0x407338
call edi
cmp word [ebp - 0x1014], 0
jne 0x404722
xor ecx, ecx
jmp 0x40473f
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
jmp 0x404730
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404730
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1044]
call fcn.00401b80
push 1
push 0
push ecx
lea ecx, [ebp - 0x102c]
call fcn.00402770
cmp eax, 0xffffffff
je 0x404a78
push 1
lea ebx, [eax + 1]
push ebx
push ecx
lea ecx, [ebp - 0x102c]
call fcn.00402770
mov edi, eax
cmp edi, 0xffffffff
je 0x404a78
push ebx
push 0
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00401780
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x12ac]
push eax
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 4
call fcn.00401780
push eax
lea ecx, [ebp - 0x102c]
call fcn.004016d0
cmp dword [ebp - 0x1298], 8
jb 0x4047d6
push dword [ebp - 0x12ac]
call esi
add esp, 4
lea eax, [ebp - 0x1074]
push eax
lea edx, [ebp - 0x105c]
lea ecx, [ebp - 0x1294]
call fcn.004056a0
add esp, 4
lea ecx, [ebp - 0x102c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x12ac]
mov byte [ebp - 4], 5
call fcn.00405760
add esp, 4
lea ecx, [ebp - 0x105c]
push eax
call fcn.004016d0
cmp dword [ebp - 0x1298], 8
jb 0x40482c
push dword [ebp - 0x12ac]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1280], 8
mov dword [ebp - 0x1298], 7
mov dword [ebp - 0x129c], 0
mov word [ebp - 0x12ac], ax
jb 0x404861
push dword [ebp - 0x1294]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x102c]
call fcn.004017c0
push ebx
push 0
lea eax, [ebp - 0x12ac]
push eax
lea ecx, [ebp - 0x1044]
call fcn.00401780
push eax
lea ecx, [ebp - 0x105c]
call fcn.004016d0
cmp dword [ebp - 0x1298], 8
jb 0x4048ac
push dword [ebp - 0x12ac]
call esi
add esp, 4
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x12ac]
push eax
lea ecx, [ebp - 0x1044]
call fcn.00401780
push eax
lea ecx, [ebp - 0x1044]
call fcn.004016d0
cmp dword [ebp - 0x1298], 8
jb 0x4048e1
push dword [ebp - 0x12ac]
call esi
add esp, 4
lea eax, [ebp - 0x1074]
push eax
lea edx, [ebp - 0x105c]
lea ecx, [ebp - 0x1294]
call fcn.004056a0
add esp, 4
lea ecx, [ebp - 0x1044]
push ecx
mov edx, eax
lea ecx, [ebp - 0x12ac]
mov byte [ebp - 4], 6
call fcn.00405760
add esp, 4
lea ecx, [ebp - 0x105c]
push eax
call fcn.004016d0
cmp dword [ebp - 0x1298], 8
jb 0x404937
push dword [ebp - 0x12ac]
call esi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1280], 8
mov dword [ebp - 0x1298], 7
mov dword [ebp - 0x129c], 0
mov word [ebp - 0x12ac], ax
jb 0x40496c
push dword [ebp - 0x1294]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x1044]
call fcn.004017c0
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x1294], ax
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1294]
mov dword [ebp - 0x1280], 7
mov dword [ebp - 0x1284], 0
call fcn.004017c0
cmp dword [ebp - 0x1280], 8
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x127c]
push ecx
lea eax, [ebp - 0x1294]
cmovae eax, dword [ebp - 0x1294]
push eax
push str.HP_Def
push 0x407338
call edi
cmp dword [ebp - 0x1280], 8
jb 0x4049f6
push dword [ebp - 0x1294]
call esi
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x1294], ax
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x1294]
mov dword [ebp - 0x1280], 7
mov dword [ebp - 0x1284], 0
call fcn.004017c0
cmp dword [ebp - 0x1280], 8
lea ecx, [ebp - 0x127c]
push ecx
lea eax, [ebp - 0x1294]
cmovae eax, dword [ebp - 0x1294]
push eax
push str.DS_Def
push 0x407338
call edi
cmp dword [ebp - 0x1280], 8
jb 0x404a64
push dword [ebp - 0x1294]
call esi
add esp, 4
cmp dword [ebp - 0x1048], 8
jb 0x404a78
push dword [ebp - 0x105c]
call esi
add esp, 4
cmp dword [ebp - 0x1030], 8
jb 0x404a8c
push dword [ebp - 0x1044]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1018], 8
mov dword [ebp - 0x1030], 7
mov dword [ebp - 0x1034], 0
mov word [ebp - 0x1044], ax
jb 0x404abd
push dword [ebp - 0x102c]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x1060], 8
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], 0
mov word [ebp - 0x102c], ax
jb 0x404aee
push dword [ebp - 0x1074]
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004058f7
mov esp, ebp
pop ebp
ret 4