Function at 0x491a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c758
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x58c758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.004368a0
movzx eax, al
test eax, eax
je 0x491a64
xor eax, eax
jmp 0x492232
mov ecx, dword [ebp + 8]
call fcn.00493760
lea ecx, [ebp - 0x2c]
call fcn.004935b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004494e0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x150]
call fcn.00490fa0
test eax, eax
je 0x491aa6
lea ecx, [ebp - 0x2c]
call fcn.0045a410
test eax, eax
ja 0x491ac4
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004933b0
mov eax, dword [ebp - 0x7c]
jmp 0x492232
mov ecx, dword [ebp - 0x150]
call fcn.004923c0
test eax, eax
je 0x491b5a
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x150]
call fcn.004907b0
push str.360EntClient_update.ini
lea edx, [ebp - 0x44]
push edx
call fcn.00401270
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0043e290
push eax
push 0
push str.switch
push str.360safe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
jne 0x491b30
push 0
mov ecx, dword [ebp - 0x150]
call fcn.00492250
mov dword [ebp - 0x80], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004933b0
mov eax, dword [ebp - 0x80]
jmp 0x492232
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x80004005
cmp dword [0x58f88c], 0
jne 0x491b95
cmp dword [0x58fb3c], 0
jne 0x491b95
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00492fd0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x491b95
jmp 0x492207
lea ecx, [ebp - 0x50]
call fcn.004934d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00493540
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00493470
mov byte [ebp - 4], 4
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.00459d90
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x158], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x158]
call fcn.0043e290
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.0045a0d0
mov dword [ebp - 0x58], 0
jmp 0x491c2d
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x48]
jae 0x492112
lea ecx, [ebp - 0x50]
call fcn.00430e40
lea ecx, [ebp - 0x54]
call fcn.00430e40
lea edx, [ebp - 0xac]
push edx
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.00459d90
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14c]
or ecx, 1
mov dword [ebp - 0x14c], ecx
mov ecx, dword [ebp - 0x164]
call fcn.0043e290
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x50]
call fcn.00493500
push eax
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jl 0x491d38
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.00459d90
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x170], edx
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x14c]
or eax, 2
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x170]
call fcn.0043e290
mov dword [ebp - 0x174], eax
lea ecx, [ebp - 0x54]
call fcn.00493500
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
call edx
test eax, eax
jl 0x491d38
mov dword [ebp - 0x178], 0
jmp 0x491d42
mov dword [ebp - 0x178], 1
mov al, byte [ebp - 0x178]
mov byte [ebp - 0x95], al
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x14c]
and ecx, 2
je 0x491d72
and dword [ebp - 0x14c], 0xfffffffd
lea ecx, [ebp - 0xbc]
call fcn.0045a0d0
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x14c]
and edx, 1
je 0x491d96
and dword [ebp - 0x14c], 0xfffffffe
lea ecx, [ebp - 0xac]
call fcn.0045a0d0
movzx eax, byte [ebp - 0x95]
test eax, eax
je 0x491da6
jmp 0x491c24
lea ecx, [ebp - 0x4c]
call fcn.00430e40
lea ecx, [ebp - 0xd4]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00493520
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x180]
call fcn.0043e290
mov dword [ebp - 0x184], eax
lea ecx, [ebp - 0x4c]
call fcn.00493500
push eax
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
xor ecx, ecx
test eax, eax
setl cl
mov byte [ebp - 0xbd], cl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
call fcn.00493570
movzx edx, byte [ebp - 0xbd]
test edx, edx
je 0x491e2d
jmp 0x491c24
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00493520
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x18c]
call fcn.0043e290
mov dword [ebp - 0x190], eax
mov edx, dword [ebp - 0x190]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [eax + 0x28]
call edx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401e30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe4]
call fcn.00493570
lea ecx, [ebp - 0x4c]
call fcn.00430e40
lea ecx, [ebp - 0x5c]
call fcn.00428bb0
lea ecx, [ebp - 0x5c]
call fcn.00402010
movzx eax, al
test eax, eax
je 0x491ebf
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00401eb0
jmp 0x491c24
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004937c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00486210
mov ecx, eax
call fcn.00475200
movzx edx, al
test edx, edx
je 0x491f0f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00401eb0
jmp 0x491c24
lea ecx, [ebp - 0x64]
call fcn.00403840
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00493520
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x198]
call fcn.0043e290
mov dword [ebp - 0x19c], eax
lea ecx, [ebp - 0x4c]
call fcn.00493500
push eax
mov edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
xor ecx, ecx
test eax, eax
setge cl
mov byte [ebp - 0xf5], cl
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x10c]
call fcn.00493570
movzx edx, byte [ebp - 0xf5]
test edx, edx
je 0x491ff7
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00493520
mov dword [ebp - 0x1a0], eax
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1a4]
call fcn.0043e290
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x1a8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1a8]
push ecx
mov edx, dword [eax + 0x28]
call edx
push eax
lea ecx, [ebp - 0x64]
call fcn.00401ed0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x11c]
call fcn.00493570
lea ecx, [ebp - 0x4c]
call fcn.00430e40
lea ecx, [ebp - 0x64]
call fcn.0043e290
push eax
call fcn.00401c70
add esp, 4
test eax, eax
je 0x492031
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x64]
call fcn.00401eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00401eb0
jmp 0x491c24
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00493520
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], ecx
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x1b0]
call fcn.0043e290
mov dword [ebp - 0x1b4], eax
mov edx, dword [ebp - 0x1b4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1b4]
push ecx
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x12c]
call fcn.00493570
lea ecx, [ebp - 0x3c]
call fcn.0045a620
cmp dword [eax + 0x10], 0
je 0x4920a9
lea ecx, [ebp - 0x3c]
call fcn.0045a620
cmp dword [eax + 0x10], 1
jne 0x4920af
cmp dword [ebp - 0x60], 2
jne 0x4920c9
lea ecx, [ebp - 0x3c]
call fcn.0045a620
cmp dword [eax + 0x10], 2
jne 0x4920e6
cmp dword [ebp - 0x60], 0
je 0x4920e6
cmp dword [ebp - 0x60], 1
je 0x4920e6
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x64]
call fcn.00401eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00401eb0
jmp 0x491c24
lea ecx, [ebp - 0x3c]
call fcn.0045a620
mov dword [eax + 0x14], 1
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x64]
call fcn.00401eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.00401eb0
jmp 0x491c24
lea ecx, [ebp - 0x4c]
call fcn.00430e40
lea ecx, [ebp - 0x50]
call fcn.00430e40
lea ecx, [ebp - 0x54]
call fcn.00430e40
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0045ee00
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
jmp 0x492157
push 0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00493860
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00486210
push eax
lea ecx, [ebp - 0x3c]
call fcn.00474e80
movzx edx, al
test edx, edx
je 0x4921d3
lea ecx, [ebp - 0x3c]
call fcn.0045a620
cmp dword [eax + 0x14], 0
je 0x4921ce
lea ecx, [ebp - 0x3c]
call fcn.0045a620
add eax, 4
push eax
lea ecx, [ebp - 0x78]
call fcn.004933d0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0045a620
add eax, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.004935e0
mov ecx, eax
call fcn.00493350
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00409d90
jmp 0x492146
lea ecx, [ebp - 0x2c]
call fcn.00493760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00471a00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00471a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00471a00
xor ecx, ecx
jne 0x491b68
mov ecx, dword [ebp + 8]
call fcn.0045a410
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004933b0
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc