Function at 0x405820
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43f708
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453544]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0xd4]
push edi
lea ecx, [esi + 0x78]
call fcn.0041066e
lea ebx, [esi + 0xcc]
push ebx
push 0x3ea
mov ecx, esi
call fcn.00411ca5
lea eax, [esi + 0xd0]
push eax
push 0x3eb
mov ecx, esi
call fcn.00411ca5
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x405be7
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x405be7
push 0
push 0x447f38
push 0x4474e0
mov ecx, 0x457880
call fcn.0041361e
cmp eax, 1
jne 0x405904
mov ecx, edi
call fcn.00404480
test al, al
jne 0x405904
lea edx, [esp + 0x14]
push edx
mov ecx, 0x28f0
call fcn.0040b4c0
add esp, 4
push 0
mov dword [esp + 0x2c], 0
mov eax, dword [eax]
push 0
push eax
call fcn.00416dca
mov dword [esp + 0x28], 0xffffffff
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
jmp 0x405c29
mov eax, dword [edi]
push eax
push str.Server
push 0x4474e0
mov ecx, 0x457880
call fcn.0041370e
mov ecx, dword [esi + 0x200]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push ecx
call ebp
lea edi, [esi + 0xe0]
push edi
lea ecx, [esi + 0x1e0]
mov dword [esi + 0x234], eax
call fcn.0041066e
mov eax, dword [esi + 0xdc]
mov edi, dword [edi]
push eax
push 0
push str.LogonWay
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov eax, dword [esi + 0x234]
call fcn.00407310
mov eax, dword [eax]
push eax
push str.StartApp
push 0x4474e0
mov ecx, 0x457880
call fcn.0041370e
push edi
push str.LogonWay
push 0x4474e0
mov ecx, 0x457880
call fcn.00413687
test edi, edi
je 0x405a8a
mov eax, dword [ebx]
push 0x5c
push eax
call fcn.00427efc
add esp, 8
test eax, eax
jne 0x4059b9
or edi, 0xffffffff
jmp 0x4059bf
sub eax, dword [ebx]
sar eax, 1
mov edi, eax
call fcn.0040c3d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4059d9
push 0x80004005
call fcn.00401770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp edi, 0xffffffff
mov dword [esp + 0x28], 1
je 0x405a3c
add edi, 1
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004072b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00401950
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405a46
push ebx
lea ecx, [esp + 0x18]
call fcn.00401950
lea eax, [esi + 0xd0]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00406470
add esp, 8
mov dword [esp + 0x28], 0xffffffff
test al, al
mov eax, dword [esp + 0x14]
je 0x405c19
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x104]
push 0
push 0
push 0xf0
push ecx
call ebp
test eax, eax
mov ecx, 0x457880
je 0x405abb
push 1
push str.Save
push 0x4474e0
call fcn.00413687
mov ebx, dword [ebx]
push ebx
jmp 0x405ad1
push 0
push str.Save
push 0x4474e0
call fcn.00413687
push 0x4471b0
push str.User
push 0x4474e0
mov ecx, 0x457880
call fcn.0041370e
mov edx, dword [esi + 0x158]
push 0
push 0
push 0xf0
push edx
call ebp
test eax, eax
mov ecx, 0x457880
je 0x405b6d
push 1
push str.SavePwd
push 0x4474e0
call fcn.00413687
lea eax, [esp + 0x18]
push eax
lea ebx, [esi + 0xd0]
call section..text
add esp, 4
mov dword [esp + 0x28], 3
mov eax, dword [eax]
push eax
push 0x448100
push 0x4474e0
mov ecx, 0x457880
call fcn.0041370e
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405b97
push 0
push str.SavePwd
push 0x4474e0
call fcn.00413687
push 0x4471b0
push 0x448100
push 0x4474e0
mov ecx, 0x457880
call fcn.0041370e
mov ecx, dword [esi + 0x1ac]
push 0
push 0
push 0xf0
push ecx
call ebp
test eax, eax
mov ecx, 0x457880
je 0x405bb6
push 1
jmp 0x405bb8
push 0
push str.AutoLogon
push 0x4474e0
call fcn.00413687
mov edx, dword [esi]
mov eax, dword [edx + 0x150]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x2710
call fcn.0040b4c0
add esp, 4
push 0
mov dword [esp + 0x2c], 4
mov eax, dword [eax]
push 0
push eax
call fcn.00416dca
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret