Function at 0x46db00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7b24
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4d304c]
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.0046d000
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.004070b0
movzx ecx, al
test ecx, ecx
je 0x46db81
mov byte [ebp - 0x2c6], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov al, byte [ebp - 0x2c6]
jmp 0x46ded8
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 0x46de6c
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00479a50
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x4b8270
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 0x46dc39
mov ecx, dword [ebp - 0x2cc]
sub ecx, dword [ebp - 0x2e4]
sar ecx, 1
mov dword [ebp - 0x2e8], ecx
je 0x46dcb8
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 0x46dcb8
mov dword [ebp - 0x2dc], 1
jmp 0x46dcc2
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 0x46dcf2
and dword [ebp - 0x2d0], 0xfffffffe
lea ecx, [ebp - 0x294]
call fcn.00407180
movzx edx, byte [ebp - 0x2c7]
test edx, edx
je 0x46dd99
lea eax, [ebp - 0x2c4]
push eax
call fcn.0046ca40
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 0x46dd7b
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 0x46ddb5
jmp 0x46ddba
call fcn.004771f2
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 0x4b8270
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 0x46de12
mov edx, dword [ebp - 0x2d4]
sub edx, dword [ebp - 0x2ec]
sar edx, 1
mov dword [ebp - 0x2f0], edx
je 0x46de6c
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 0x46de9e
mov byte [ebp - 0x2c5], 1
jmp 0x46dea5
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.00476b97
mov esp, ebp
pop ebp
ret