Function at 0x407050
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x456fcc
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x46e780]
xor eax, esp
mov dword [esp + 0x248], eax
push ebp
push esi
push edi
mov eax, dword [0x46e780]
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.0042190e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4070b5
push 0x80004005
call fcn.00401350
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 0x472c70
push ecx
mov dword [esp + 0x270], edi
call fcn.004021b0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x104
lea edx, [esp + 0x58]
push edx
push 0x460114
push 0x45ffb4
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 0x407125
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 0x407130
sub eax, edx
sar eax, 1
jne 0x407346
call fcn.0042190e
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40715f
push 0x80004005
call fcn.00401350
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 0x4071de
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.004016e0
add esp, 0x34
jmp 0x407296
push edi
call fcn.0043b13b
add esp, 4
mov esi, eax
mov dword [esp + 0x18], edx
call fcn.0043b119
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.004016e0
add esp, 0x18
lea esi, [esp + 0x24]
call fcn.00406e70
mov esi, 0x10
mov byte [esp + 0x264], 2
cmp dword [eax + 0x18], esi
jb 0x40722e
mov eax, dword [eax + 4]
jmp 0x407231
add eax, 4
push eax
lea ecx, [esp + 0x18]
call fcn.004050d0
mov byte [esp + 0x264], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00407e20
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 0x40727b
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 0x407296
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041bf84
add esp, 4
push str.QiyiClientInstallConfig.ini
lea edx, [esp + 0x18]
push 0x472c70
push edx
call fcn.004021b0
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push eax
push esi
push 0x45ffb4
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 0x4072e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
push esi
call fcn.00402470
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 0x40731e
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 0x407342
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
jmp 0x40737b
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.004024e0
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 0x407379
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.00439c98
add esp, 0x258
ret