Function at 0x406120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cfb05
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x655140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.getMID2
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], ebx
call edi
test eax, eax
jne 0x4061a7
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0048cff0
mov esi, dword [ebp - 0x14]
push esi
call fcn.004c0bd2
add esp, 4
mov dword [ebx], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40680f
mov ecx, dword [esi]
push esi
jmp 0x40680a
push str.getQD
push esi
call edi
test eax, eax
jne 0x4061e1
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0048cc80
push dword [ebp - 0x14]
call fcn.004c0bd2
mov edx, dword [ebp - 0x14]
add esp, 4
mov dword [ebx], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x406805
push str.getOS
push esi
call edi
test eax, eax
jne 0x406267
mov esi, dword [0x67a8b0]
test esi, esi
jne 0x40621f
call fcn.0048b0f0
mov esi, dword [0x67a838]
call fcn.0048b0f0
xor ecx, ecx
lea eax, [esi + esi*4]
cmp dword [0x67a83c], ecx
setne cl
inc ecx
lea esi, [ecx + eax*2]
mov dword [0x67a8b0], esi
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x406839
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push 0x6318e8
push eax
call fcn.00409210
mov esi, dword [ebp - 0x14]
push esi
call fcn.004c0bd2
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
jmp 0x406189
push str.getVersion
push esi
call edi
test eax, eax
jne 0x406283
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0048c3c0
jmp 0x40617d
push str.getToken
push esi
call edi
test eax, eax
jne 0x406361
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x406839
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x2c]
or ebx, 0xffffffff
mov dword [ebp - 4], 1
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x40633c
mov eax, dword [ecx]
lea edx, [ebp - 0x28]
push edx
call dword [eax + 0x24]
mov byte [ebp - 4], 2
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x40631e
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40630f
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40630f
call fcn.00408e50
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x406307
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
jmp 0x40631e
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.00408fa0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40633c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call fcn.004c0bd2
mov ecx, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov dword [ecx], eax
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jmp 0x406199
push str.getLenovoToken
push esi
call edi
test eax, eax
jne 0x406382
push dword [0x67a77c]
call fcn.004c0bd2
add esp, 4
mov dword [ebx], eax
jmp 0x40680f
push str.onLoginResult
push esi
call edi
test eax, eax
jne 0x40658f
cmp dword [ebp + 0x14], 2
jb 0x4065a5
mov esi, dword [ebp - 0x28]
mov esi, dword [esi]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x406839
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
call fcn.00408c10
test al, al
jne 0x4063f9
test esi, esi
jne 0x4063d7
xor ecx, ecx
jmp 0x4063ef
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00408fa0
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x14]
push 0x631d34
push edi
call fcn.004c0ad1
add esp, 8
neg eax
sbb eax, eax
or ebx, 0xffffffff
inc eax
cmp dword [ebp + 0x14], 2
mov dword [ebp - 0x30], eax
jbe 0x4064c9
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0
je 0x4064c9
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 8]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40682f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00408c10
test al, al
jne 0x40648a
test esi, esi
jne 0x40646c
xor ecx, ecx
jmp 0x406480
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406471
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00408fa0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x18]
push 0x631d34
push esi
call fcn.004c0ad1
add esp, 8
test eax, eax
jne 0x4064ae
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4064c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 4]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40682f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00408c10
test al, al
jne 0x406520
test esi, esi
jne 0x406502
xor ecx, ecx
jmp 0x406516
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406507
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00408fa0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x406554
push ecx
mov ebx, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x28], ebx
call fcn.00408e50
push dword [ebp - 0x30]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40656f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40680f
mov ecx, dword [edi]
push edi
jmp 0x40680a
push 0x631d38
push esi
call edi
test eax, eax
jne 0x406642
cmp dword [ebp + 0x14], 1
jae 0x4065af
mov eax, 0x80004005
jmp 0x406811
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x406839
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 9
call fcn.00408c10
test al, al
jne 0x406609
test esi, esi
jne 0x4065ea
xor ecx, ecx
jmp 0x4065ff
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00408fa0
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 0x14]
push 0x631d34
push esi
call fcn.004c0ad1
mov ecx, dword [ebp - 0x2c]
add esp, 8
neg eax
sbb eax, eax
mov ecx, dword [ecx + 4]
inc eax
test ecx, ecx
je 0x406636
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
mov dword [ebp - 4], 0xffffffff
jmp 0x40618b
push str.onGetCouponSucceed
push esi
call edi
test eax, eax
jne 0x406666
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40680f
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x40680f
push str.onUninstall
push esi
call edi
test eax, eax
jne 0x406682
push str.onUninstall_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40680f
mov dword [ebp - 0x18], 0
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x406843
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xb
call fcn.00408c10
test al, al
jne 0x4066dd
test esi, esi
jne 0x4066bf
xor ecx, ecx
jmp 0x4066d3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4066c4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00408fa0
mov dword [ebp - 4], 0xc
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xor ebx, ebx
mov byte [ebp - 4], 0xd
or esi, 0xffffffff
cmp dword [ebp + 0x14], ebx
jbe 0x4067d1
nop word [eax + eax]
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + ebx*4]
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x40682f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.00408c10
test al, al
jne 0x406779
test esi, esi
jne 0x406759
xor ecx, ecx
jmp 0x40676f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406760
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00408fa0
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
cmp edi, dword [ebp - 0x1c]
je 0x40679b
lea ecx, [esi - 0x10]
call fcn.00408e50
add eax, 0x10
mov dword [edi], eax
add dword [ebp - 0x20], 4
jmp 0x4067a8
lea eax, [ebp - 0x14]
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.004099c0
mov byte [ebp - 4], 0xd
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4067c4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp + 0x14]
jb 0x406720
or esi, 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4067e8
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
call dword [eax + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00408af0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40680f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
int3