Function at 0x4051f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2010
call fcn.00439d30
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x200c], eax
push str.update.ini
lea eax, [esp + 8]
push 0
push eax
call fcn.00404df0
add esp, 8
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00403af0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40524a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
mov edi, dword [esp + 0x10]
push edi
push 0
push str.Enable
push str.Notify
call esi
test eax, eax
je 0x405424
push edi
push 0
push str.Force
push str.Notify
call esi
mov edx, dword [0x4fe3b0]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fe3b0
call eax
mov edx, dword [0x4fe3b0]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fe3b0
call eax
mov edx, dword [0x4fe3b0]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4fe3b0
call eax
xor ecx, ecx
push 0x1ffe
push ecx
lea edx, [esp + 0x26]
add eax, 0x10
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x28], cx
call fcn.004395a0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
push edi
push 0x1000
lea eax, [esp + 0x24]
push eax
push 0x4a3520
push str.Title
push str.Notify
call esi
lea eax, [esp + 0x1c]
lea ecx, [eax + 2]
jmp 0x405310
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x405310
sub eax, ecx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403830
push edi
push 0x1000
lea edx, [esp + 0x24]
push edx
push 0x4a3520
push str.Info
push str.Notify
call esi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405351
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00403830
push edi
push 0x1000
lea ecx, [esp + 0x24]
push ecx
push 0x4a3520
push 0x4a3690
push str.Notify
call esi
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405392
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.00403830
mov ebp, dword [esp + 0x18]
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x40545b
push 0
push ebp
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405440
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x2010
ret
push 1
push ebp
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x4053cc
mov esi, dword [esp + 0x14]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x405499
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405509
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x405442