Function at 0x46e690
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a88e4
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.0046db90
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.004070b0
movzx ecx, al
test ecx, ecx
je 0x46e711
mov byte [ebp - 0x2c6], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov al, byte [ebp - 0x2c6]
jmp 0x46ea68
push str.config.ini
lea ecx, [ebp - 0x27c]
call fcn.00407220
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.0040e130
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x27c]
call fcn.00407180
lea edx, [ebp - 0x234]
push edx
call fcn.0040a970
add esp, 4
movzx eax, al
test eax, eax
je 0x46e9fc
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0047a5f0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x4b9360
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 0x46e7c9
mov ecx, dword [ebp - 0x2cc]
sub ecx, dword [ebp - 0x2e4]
sar ecx, 1
mov dword [ebp - 0x2e8], ecx
je 0x46e848
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x294]
call fcn.00407220
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.00408610
add esp, 8
test eax, eax
je 0x46e848
mov dword [ebp - 0x2dc], 1
jmp 0x46e852
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 0x46e882
and dword [ebp - 0x2d0], 0xfffffffe
lea ecx, [ebp - 0x294]
call fcn.00407180
movzx edx, byte [ebp - 0x2c7]
test edx, edx
je 0x46e929
lea eax, [ebp - 0x2c4]
push eax
call fcn.0046d5d0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.00407220
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.0040e130
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ac]
call fcn.00407180
lea edx, [ebp - 0x264]
push edx
call fcn.0040a7d0
add esp, 4
movzx eax, al
test eax, eax
je 0x46e90b
lea ecx, [ebp - 0x264]
push ecx
call fcn.0040ac00
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x264]
call fcn.00407180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c4]
call fcn.00407180
mov edx, 2
imul eax, edx, 0
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0x20a
jae 0x46e945
jmp 0x46e94a
call fcn.00477d91
xor ecx, ecx
mov edx, dword [ebp - 0x2e0]
mov word [ebp + edx - 0x21c], cx
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x4b9360
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 0x46e9a2
mov edx, dword [ebp - 0x2d4]
sub edx, dword [ebp - 0x2ec]
sar edx, 1
mov dword [ebp - 0x2f0], edx
je 0x46e9fc
lea ecx, [ebp - 0x234]
call fcn.004070c0
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.004070c0
push eax
mov ecx, dword [ebp + 8]
call fcn.004070c0
push eax
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x46ea2e
mov byte [ebp - 0x2c5], 1
jmp 0x46ea35
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.00407180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret