Function at 0x4070a0
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x457181
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46e780]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
push edi
mov eax, dword [0x46e780]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x60], esi
mov ebx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], esi
call fcn.00421a7e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x4070ff
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
push ecx
mov dword [esp + 0x64], esi
mov ecx, esp
mov dword [esp + 0x14], esp
push str.HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionImeeAddressMacAddr__macaddr
mov dword [esp + 0x28], 1
call fcn.00402500
call sym.QiyiInstaller.exe_ReadReg
mov ecx, esp
mov dword [esp + 0x14], esp
push str.macaddr
call fcn.00402500
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040b170
add esp, 8
push eax
mov ecx, ebx
mov dword [esp + 0x64], 1
call fcn.004029f0
mov byte [esp + 0x60], 0
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 0x407181
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00407b50
mov edi, eax
call fcn.00407bd0
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x40726d
push str.QiyiClientInstallConfig.ini
lea edx, [esp + 0x1c]
push 0x472c98
push edx
mov dword [esp + 0x20], 1
call fcn.004021d0
add esp, 0xc
mov dword [esp + 0x60], 2
mov esi, dword [eax]
mov eax, dword [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4071e8
push 0x104
mov ecx, ebx
call fcn.004013d0
mov eax, dword [ebx]
push esi
push 0x104
push eax
push 0x4602d4
push 0x460088
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [esp + 0x60], 0
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 0x40722b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
test edx, edx
jne 0x407235
xor eax, eax
jmp 0x407251
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407240
sub eax, esi
sar eax, 1
js 0x407293
cmp eax, dword [edx - 8]
jg 0x407293
mov dword [edx - 0xc], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
call fcn.00407b50
mov edi, eax
call fcn.00407bd0
mov edx, dword [ebx]
cmp dword [edx - 0xc], 0
jne 0x4073dc
call fcn.00421a7e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40729d
push 0x80004005
call fcn.00401350
push 0x80070057
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x64], 3
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x407318
movzx edx, byte [esp + 0x53]
movzx eax, byte [esp + 0x52]
movzx ecx, byte [esp + 0x51]
push edx
movzx edx, byte [esp + 0x54]
push eax
movzx eax, byte [esp + 0x57]
push ecx
movzx ecx, byte [esp + 0x5a]
push edx
movzx edx, byte [esp + 0x5d]
push eax
movzx eax, byte [esp + 0x60]
push ecx
movzx ecx, word [esp + 0x62]
push edx
movzx edx, word [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
push ebx
call fcn.00401700
add esp, 0x34
jmp 0x4073bb
push 0
call fcn.0043a419
add esp, 4
mov esi, eax
mov dword [esp + 0x1c], edx
call fcn.0043a274
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._u_u_u_u
push ebx
call fcn.00401700
add esp, 0x18
lea esi, [esp + 0x28]
call fcn.00406ec0
mov esi, 0x10
mov byte [esp + 0x60], 4
cmp dword [eax + 0x18], esi
jb 0x407363
mov eax, dword [eax + 4]
jmp 0x407366
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.004050f0
mov byte [esp + 0x60], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.004080c0
mov byte [esp + 0x60], 4
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 0x4073a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], esi
jb 0x4073bb
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041c114
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.QiyiClientInstallConfig.ini
lea ecx, [esp + 0x1c]
push 0x472c98
push ecx
call fcn.004021d0
mov eax, dword [eax]
mov ecx, dword [ebx]
add esp, 0xc
push eax
push ecx
push 0x460088
push str.Install
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
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 0x407429
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x407530
call fcn.00421a7e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40744e
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], 6
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x18]
push str.HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionImeeAddressMacAddr_s
push edx
call fcn.00401700
mov esi, dword [esp + 0x20]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push esi
call fcn.00402490
add eax, 0x10
add esp, 4
mov dword [edi], eax
call sym.QiyiInstaller.exe_WriteReg
lea eax, [esp + 0x14]
push str.Write_Mac_Address
push eax
mov ecx, ebx
call fcn.004022b0
push str._To_Registry_
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x78], 7
call fcn.004021d0
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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 0x4074ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407512
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407530
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00439e3e
add esp, 0x54
ret