Function at 0x406f50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45593c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x46d750]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push esi
push edi
mov eax, dword [0x46d750]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x26c]
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edi
call fcn.00423381
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x406fb5
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push str.QiyiClientInstallConfig.ini
lea ecx, [esp + 0x18]
push 0x471c10
push ecx
mov dword [esp + 0x270], edi
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x104
lea edx, [esp + 0x58]
push edx
push 0x45f004
push 0x45eea4
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
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 0x407025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x50]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407030
sub eax, edx
sar eax, 1
jne 0x407246
call fcn.00423381
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40705f
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x268], 1
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4070de
movzx edx, byte [esp + 0x4f]
movzx eax, byte [esp + 0x4e]
movzx ecx, byte [esp + 0x4d]
push edx
movzx edx, byte [esp + 0x50]
push eax
movzx eax, byte [esp + 0x53]
push ecx
movzx ecx, byte [esp + 0x56]
push edx
movzx edx, byte [esp + 0x59]
push eax
movzx eax, byte [esp + 0x5c]
push ecx
movzx ecx, word [esp + 0x5e]
push edx
movzx edx, word [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
push ecx
call fcn.00404fb0
add esp, 0x34
jmp 0x407196
push edi
call fcn.0043a627
add esp, 4
mov esi, eax
mov dword [esp + 0x18], edx
call fcn.0043a605
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea edx, [esp + 0x20]
push str._u_u_u_u
push edx
call fcn.00404fb0
add esp, 0x18
lea esi, [esp + 0x24]
call fcn.00406d70
mov esi, 0x10
mov byte [esp + 0x264], 2
cmp dword [eax + 0x18], esi
jb 0x40712e
mov eax, dword [eax + 4]
jmp 0x407131
add eax, 4
push eax
lea ecx, [esp + 0x18]
call fcn.00404fd0
mov byte [esp + 0x264], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00407cf0
mov byte [esp + 0x264], 2
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 0x40717b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x264], 1
cmp dword [esp + 0x3c], esi
jb 0x407196
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041b9a4
add esp, 4
push str.QiyiClientInstallConfig.ini
lea edx, [esp + 0x18]
push 0x471c10
push edx
call fcn.00401dd0
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push eax
push esi
push 0x45eea4
push str.Install
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
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 0x4071e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
push esi
call fcn.004020e0
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x264], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40721e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x264], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407242
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
jmp 0x40727b
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.00402310
lea eax, [esi - 0x10]
mov dword [esp + 0x264], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00438dc7
add esp, 0x258
ret