Function at 0x46e660
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8384
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.0046db60
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.004073f0
movzx ecx, al
test ecx, ecx
je 0x46e6e1
mov byte [ebp - 0x2c6], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004074c0
mov al, byte [ebp - 0x2c6]
jmp 0x46ea38
push str.config.ini
lea ecx, [ebp - 0x27c]
call fcn.00407560
mov byte [ebp - 4], 1
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
call fcn.004074c0
lea edx, [ebp - 0x234]
push edx
call fcn.0040ac50
add esp, 4
movzx eax, al
test eax, eax
je 0x46e9cc
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0047a110
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00407400
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x4b8ea0
push str.LastVersion
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
add ecx, 2
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2cc]
mov ax, word [edx]
mov word [ebp - 0x2d6], ax
add dword [ebp - 0x2cc], 2
cmp word [ebp - 0x2d6], 0
jne 0x46e799
mov ecx, dword [ebp - 0x2cc]
sub ecx, dword [ebp - 0x2e4]
sar ecx, 1
mov dword [ebp - 0x2e8], ecx
je 0x46e818
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x294]
call fcn.00407560
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2d0]
or eax, 1
mov dword [ebp - 0x2d0], eax
lea ecx, [ebp - 0x294]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004088f0
add esp, 8
test eax, eax
je 0x46e818
mov dword [ebp - 0x2dc], 1
jmp 0x46e822
mov dword [ebp - 0x2dc], 0
mov al, byte [ebp - 0x2dc]
mov byte [ebp - 0x2c7], al
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2d0]
and ecx, 1
je 0x46e852
and dword [ebp - 0x2d0], 0xfffffffe
lea ecx, [ebp - 0x294]
call fcn.004074c0
movzx edx, byte [ebp - 0x2c7]
test edx, edx
je 0x46e8f9
lea eax, [ebp - 0x2c4]
push eax
call fcn.0046d5a0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.00407560
mov byte [ebp - 4], 6
lea edx, [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ac]
call fcn.004074c0
lea edx, [ebp - 0x264]
push edx
call fcn.0040aab0
add esp, 4
movzx eax, al
test eax, eax
je 0x46e8db
lea ecx, [ebp - 0x264]
push ecx
call fcn.0040aee0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x264]
call fcn.004074c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c4]
call fcn.004074c0
mov edx, 2
imul eax, edx, 0
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0x20a
jae 0x46e915
jmp 0x46e91a
call fcn.004778ae
xor ecx, ecx
mov edx, dword [ebp - 0x2e0]
mov word [ebp + edx - 0x21c], cx
lea ecx, [ebp - 0x234]
call fcn.00407400
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x4b8ea0
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x2d4], ecx
mov edx, dword [ebp - 0x2d4]
add edx, 2
mov dword [ebp - 0x2ec], edx
mov eax, dword [ebp - 0x2d4]
mov cx, word [eax]
mov word [ebp - 0x2d8], cx
add dword [ebp - 0x2d4], 2
cmp word [ebp - 0x2d8], 0
jne 0x46e972
mov edx, dword [ebp - 0x2d4]
sub edx, dword [ebp - 0x2ec]
sar edx, 1
mov dword [ebp - 0x2f0], edx
je 0x46e9cc
lea ecx, [ebp - 0x234]
call fcn.00407400
push eax
lea eax, [ebp - 0x21c]
push eax
push str.LastVersion
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x234]
call fcn.00407400
push eax
mov ecx, dword [ebp + 8]
call fcn.00407400
push eax
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x46e9fe
mov byte [ebp - 0x2c5], 1
jmp 0x46ea05
mov byte [ebp - 0x2c5], 0
mov cl, byte [ebp - 0x2c5]
mov byte [ebp - 0x2c8], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004074c0
mov al, byte [ebp - 0x2c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477254
mov esp, ebp
pop ebp
ret