Function at 0x4047b0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x120c]
mov eax, 0x120c
call fcn.004ae4e0
push 0xffffffffffffffff
push 0x4c88e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp + 0x1208], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [0x501c04]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
sub eax, 0x10
push eax
call fcn.00406ea0
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
push str._bk0.jpg
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 4], 0
call fcn.004051e0
add esp, 0x10
push edi
push 0x208
lea edx, [ebp + 0x1000]
push edx
push str.phservice5.oray.net
push str.szServiceHost
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.SETTINGS
call ebx
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x404866
xor eax, eax
jmp 0x404887
add eax, eax
mov dword [ebp - 0x14], eax
call fcn.004aedf0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, esp
push ecx
push edx
lea ecx, [ebp + 0x1000]
push ecx
push eax
call fcn.00406c70
mov ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x14], edx
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x404890
sub ecx, dword [ebp - 0x14]
push ecx
push eax
lea ecx, [esi + 0x10]
call fcn.00406990
push edi
push 0x208
lea eax, [ebp + 0x1000]
push eax
push str.ns.oray.net
push str.szDefaultDNS
push str.SETTINGS
call ebx
lea ecx, [ebp + 0x1000]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4048df
xor eax, eax
jmp 0x404900
add eax, eax
mov dword [ebp - 0x14], eax
call fcn.004aedf0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, esp
push edx
push ecx
lea edx, [ebp + 0x1000]
push edx
push eax
call fcn.00406c70
mov ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x10], edx
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x404908
sub ecx, dword [ebp - 0x10]
push ecx
push eax
lea ecx, [esi + 0x2c]
call fcn.00406990
push edi
push 0x208
lea eax, [ebp + 0x1000]
push eax
push 0x4d96f4
push str.bAlwaysOnTop
push str.SETTINGS
call ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
test eax, eax
lea eax, [ebp + 0x1000]
push eax
push 0x4d96f4
push str.bOnlyDisplayActive
setne dl
push str.SETTINGS
mov byte [esi + 0x4c], dl
call ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
test eax, eax
lea eax, [ebp + 0x1000]
push eax
push 0x4d96f8
push str.bStartRestore
setne dl
push str.SETTINGS
mov byte [esi + 0x4d], dl
call ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
test eax, eax
lea eax, [ebp + 0x1000]
push eax
push 0x4d96fc
push str.nCurrentLang
setne dl
push str.SETTINGS
mov byte [esi + 0x4e], dl
call ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
lea edx, [ebp + 0x1000]
push edx
push 0x4d96f8
push str.bPeanutDisconnectAlert
push str.SETTINGS
mov dword [esi + 0x54], eax
call ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.004a7a1f
add esp, 4
test eax, eax
setne cl
push edi
mov byte [esi + 0x4f], cl
push 0x208
lea edx, [ebp + 0x1000]
push edx
push 0x4d96f8
push str.bDomainDateoutAlert
push str.SETTINGS
call ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
lea edx, [ebp + 0x1000]
push edx
push 0x4d96f8
test eax, eax
push str.bPlayAlertSound
setne cl
push str.SETTINGS
mov byte [esi + 0x50], cl
call ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
lea edx, [ebp + 0x1000]
push edx
push 0x4d96f4
test eax, eax
push str.bLockPasswordOperations
setne cl
push str.SETTINGS
mov byte [esi + 0x51], cl
call ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
lea edx, [ebp + 0x1000]
push edx
push 0x4d96f4
test eax, eax
push str.nTransparent
setne cl
push str.SETTINGS
mov byte [esi + 0x52], cl
call ebx
lea eax, [ebp + 0x1000]
push eax
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
lea ecx, [ebp + 0x1000]
push ecx
push 0x4d9700
push str.nTransparentContent
push str.SETTINGS
mov dword [esi + 0x58], eax
call ebx
lea edx, [ebp + 0x1000]
push edx
call fcn.004a7a1f
mov ecx, dword [ebp - 0x18]
add esp, 4
push edi
push 0x208
mov dword [esi + 0x5c], eax
lea eax, [ebp + 0x1000]
push eax
push ecx
push str.nBigLogoFilePath
push str.SETTINGS
call ebx
lea eax, [ebp + 0x1000]
lea edx, [eax + 2]
lea ecx, [esi + 0x68]
mov dword [ebp - 0x10], edx
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404b50
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp + 0x1000]
push eax
call fcn.00402310
push edi
push 0x208
lea ecx, [ebp + 0x1000]
push ecx
push 0x4d96f8
push str.nBkDrawMode
push str.SETTINGS
call ebx
lea edx, [ebp + 0x1000]
push edx
call fcn.004a7a1f
add esp, 4
push edi
push 0x208
mov dword [esi + 0x60], eax
lea eax, [ebp + 0x1000]
push eax
push str.4605510
push str.rgbBkFillColor
push str.SETTINGS
call ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004a7a1f
add esp, 4
push edi
push 0x1000
lea edx, [ebp]
push edx
push 0x4d97fc
push str.szViewHide
push str.SETTINGS
mov dword [esi + 0x64], eax
call ebx
lea eax, [ebp]
lea ecx, [esi + 0x6c]
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x404bf1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp]
push eax
call fcn.00402310
mov ecx, esi
call fcn.00404c90
mov ecx, esi
call fcn.00404e10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp + 0x1208]
xor ecx, ebp
call fcn.004a74b2
add ebp, 0x120c
mov esp, ebp
pop ebp
ret