Function at 0x404260
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431f58
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43e0b0]
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
xor esi, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], esi
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 4
mov ecx, dword [0x441548]
lea edi, [ebp - 0x58]
call fcn.00415840
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x2001f
push esi
push eax
push 0x80000002
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x404337
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], esi
cmp eax, esi
mov eax, dword [ebp - 0x58]
setne byte [ebp - 0x31]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40435a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x31], 0
je 0x404419
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x54]
cmp eax, esi
je 0x4043fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0041e965
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x200
call fcn.00404e60
mov ecx, dword [0x44154c]
lea edi, [ebp - 0x58]
call fcn.00415840
mov esi, eax
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov edi, 0x200
sub eax, edi
or eax, ecx
jge 0x404462
mov eax, edi
lea ecx, [ebp - 0x3c]
call fcn.004055c0
mov ebx, dword [ebp - 0x3c]
cmp dword [ebx - 8], edi
jge 0x404471
push 0x80070057
call fcn.00401540
mov dword [ebx - 0xc], edi
xor ecx, ecx
mov word [ebx + 0x400], cx
mov eax, dword [esi]
push eax
lea edx, [ebp - 0x54]
push edx
lea edi, [ebp - 0x38]
mov esi, ebx
call fcn.00405b10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4044b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0041f064
add esp, 8
test eax, eax
js 0x404467
cmp eax, dword [ebx - 8]
jg 0x404467
mov edi, dword [ebp - 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
test edi, edi
je 0x4044ea
push edi
call esi
mov dword [ebp - 0x54], 0
mov edi, dword [ebp - 0x54]
cmp dword [ebx - 0xc], 0
mov dword [ebp - 0x50], 0
jne 0x404594
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40451e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404541
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404584
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
test edi, edi
je 0x4043fb
push edi
call esi
jmp 0x4043fb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4045bb
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404512
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
mov edx, 0x20019
mov eax, str.SoftwareTencent
mov ecx, 0x80000002
mov byte [ebp - 4], 6
call fcn.00405c00
test eax, eax
jne 0x404664
push 0x438838
lea ecx, [ebp - 0x64]
push ecx
lea edi, [ebp - 0x38]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x38], 0x10
call fcn.00405b10
test eax, eax
jne 0x404653
cmp word [ebp - 0x30], 0x2d
jne 0x404653
push 0x8004dc7
call fcn.0040b120
add esp, 4
lea esi, [ebp - 0x64]
call fcn.00405c70
call fcn.00405ca0
lea eax, [ebp - 0x48]
call fcn.00404f80
lea eax, [ebp - 0x40]
call fcn.00404f80
lea eax, [ebp - 0x44]
call fcn.00404f80
lea eax, [ebp - 0x3c]
call fcn.00404f80
lea esi, [ebp - 0x54]
call fcn.00405ca0
jmp 0x4043fb
lea esi, [ebp - 0x64]
call fcn.00405c70
mov edi, dword [ebp - 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4415a4], 0
je 0x404680
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4044fb
push eax
call esi
jmp 0x4044fb
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0x403e50
push 0
push 0
mov dword [ebp - 0x68], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x4415a4], eax
mov eax, dword [ebp - 0x64]
mov esi, ecx
test eax, eax
je 0x4046ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4046dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404723
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404743
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
test edi, edi
je 0x40474e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4043fd