Function at 0x489be0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a34c2
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00489790
mov esi, 0x11c
push esi
xor ebx, ebx
push ebx
push 0x4ea498
call fcn.0044b7d0
add esp, 0xc
mov edi, 0x4ea498
mov dword [0x4ea498], esi
call fcn.004164d0
test eax, eax
jne 0x489c4e
push esi
push ebx
push edi
call fcn.0044b7d0
add esp, 0xc
mov dword [0x4ea498], esi
push ebx
push 0x4b21c8
push 0x4ea5b4
call fcn.004114a0
push ebx
push 0x4b21cc
push 0x4ea5bc
call fcn.004114a0
push ebx
push 0x4b21d0
push 0x4ea5c0
call fcn.004114a0
push ebx
push 0x4b21d4
push 0x4ea5c8
call fcn.004114a0
push 1
push 0x4b21d8
push 0x4ea5cc
call fcn.004114a0
push ebx
push 0x4b21dc
push 0x4ea5c4
call fcn.004114a0
lea eax, [ebp - 0x2e8]
push eax
mov ecx, 0x4e9e80
call fcn.00411220
push 0xc
push 0x4b21e0
lea ecx, [ebp - 0x2e8]
push ecx
mov dword [ebp - 4], ebx
call fcn.00410d00
lea edx, [ebp - 0x2e4]
push edx
mov ecx, 0x4e9e80
call fcn.00411220
lea eax, [ebp - 0x2e8]
mov edi, 0x4e98d4
mov byte [ebp - 4], 1
call fcn.00411540
lea eax, [ebp - 0x2e4]
mov edi, 0x4e98d8
call fcn.00411540
call fcn.0048b7b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.0048f550
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489d40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [0x4ea5d8], 1
jne 0x489da3
push 0xc6
lea edx, [ebp - 0xd6]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xd8], cx
call fcn.0044b7d0
add esp, 0xc
push 0x64
lea eax, [ebp - 0xd8]
push eax
call fcn.004448f0
test eax, eax
je 0x489da3
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x489d82
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xd8]
push ecx
push 0x4ea5b4
call fcn.004114a0
mov ecx, 0x4ea5b8
call fcn.00493a60
push 0x206
lea eax, [ebp - 0x2de]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x2e0], dx
call fcn.0044b7d0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push str.QHVer.dll
push 0x4e9e80
lea ecx, [ebp - 0x2e0]
push ecx
call esi
lea edx, [ebp - 0x2e4]
push edx
lea ecx, [ebp - 0x2e0]
call fcn.0048a4f0
add esp, 4
mov edi, 0x4ea5bc
mov byte [ebp - 4], 2
call fcn.00411540
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489e2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [ebp - 0x2e0]
lea ecx, [ebp - 0x2e4]
call fcn.00489980
mov edi, 0x4ea5d0
mov byte [ebp - 4], 3
call fcn.00411540
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x489e70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x206
lea edx, [ebp - 0x2de]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x2e0], cx
call fcn.0044b7d0
add esp, 0xc
push 0x4b2210
push 0x4e9e80
lea eax, [ebp - 0x2e0]
push eax
call esi
lea ecx, [ebp - 0x2e0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a07c
mov edx, dword [0x4ea5c0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x3e8
or eax, ecx
jge 0x489ee5
mov ecx, 0x3e8
mov eax, 0x4ea5c0
call fcn.00411430
mov edx, dword [0x4ea5c0]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2e0]
push eax
push 0x3e8
push edx
push 0x4b2228
push 0x4b2230
push 0x4b2244
call esi
mov eax, dword [0x4ea5c0]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0044600f
add esp, 8
cmp eax, ebx
jl 0x48a0e2
mov ecx, dword [0x4ea5c0]
cmp eax, dword [ecx - 8]
jg 0x48a0e2
mov dword [ecx - 0xc], eax
mov edx, dword [0x4ea5c0]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [0x4ea5c8]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x3e8
or eax, ecx
jge 0x489f70
mov ecx, 0x3e8
mov eax, 0x4ea5c8
call fcn.00411430
mov edx, dword [0x4ea5c8]
lea eax, [ebp - 0x2e0]
push eax
push 0x3e8
push edx
push 0x4b224c
push 0x4b2250
push 0x4b2260
call esi
mov eax, dword [0x4ea5c8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0044600f
add esp, 8
cmp eax, ebx
jl 0x48a0e2
mov ecx, dword [0x4ea5c8]
cmp eax, dword [ecx - 8]
jg 0x48a0e2
mov dword [ecx - 0xc], eax
mov edx, dword [0x4ea5c8]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [0x4ea5cc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x3e8
or eax, ecx
jge 0x489ff5
mov ecx, 0x3e8
mov eax, 0x4ea5cc
call fcn.00411430
mov edx, dword [0x4ea5cc]
lea eax, [ebp - 0x2e0]
push eax
push 0x3e8
push edx
push 0x4b2268
push str.schannel
push 0x4b2280
call esi
mov eax, dword [0x4ea5cc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0044600f
add esp, 8
cmp eax, ebx
jl 0x48a0e2
mov ecx, dword [0x4ea5cc]
cmp eax, dword [ecx - 8]
jg 0x48a0e2
mov dword [ecx - 0xc], eax
mov edx, dword [0x4ea5cc]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [0x4ea5cc]
cmp dword [eax - 0xc], ebx
je 0x48a06b
push 0x4ea5cc
mov ecx, 0x4b2288
call fcn.00412f60
add esp, 4
test al, al
je 0x48a07c
push 1
push 0x4b228c
push 0x4ea5cc
call fcn.004114a0
push 0x1e
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
mov eax, 0x4b2290
jne 0x48a092
mov eax, 0x4b2298
mov ecx, dword [0x4ea4a0]
mov edx, dword [0x4ea49c]
push eax
push ecx
push edx
push 0x4b22a0
mov edi, 0x4ea5c4
call fcn.00410c60
add esp, 0x10
call fcn.00401bb0
mov esi, eax
cmp byte [esi + 0x270], bl
jne 0x48a0c7
call fcn.00401860
cmp dword [esi], ebx
je 0x48a0ec
mov esi, dword [esi + 0x230]
cmp esi, ebx
je 0x48a0ec
push ebx
push 0x4ea734
call esi
add esp, 8
jmp 0x48a0ee
push 0x80070057
call fcn.00411620
xor eax, eax
push 0x4ea5e0
mov ecx, 0x4e98d8
mov dword [0x4ea5dc], eax
call fcn.00494dc0
push 0x4ea5cc
push 0x4ea5c8
push 0x4ea5c4
push 0x4ea5c0
push 0x4ea5bc
mov eax, 0x4ea5b4
call fcn.00434970
push 0x4eacb8
mov ecx, 0x4e98d8
call fcn.00494dc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2e8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a15d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret