Function at 0x401830
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x280
mov eax, dword [0x423008]
xor eax, esp
mov dword [esp + 0x27c], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
push str.debug_modle
push str.Software360360huabaohuabao
push 0x80000001
mov dword [esp + 0x28], 4
call esi
test eax, eax
jne 0x4018a7
mov eax, dword [0x424410]
mov ecx, 1
cmp dword [esp + 0xc], ecx
cmove eax, ecx
mov dword [0x424410], eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 4
push eax
push str.debug_log
push str.Software360360huabaohuabao
push 0x80000001
call esi
test eax, eax
jne 0x4018f6
cmp dword [esp + 0xc], 1
jne 0x4018f6
mov dword [0x424410], 1
jmp 0x401903
cmp dword [0x424410], 0
je 0x401992
mov esi, dword [0x424418]
push 0
push str.C:_temp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.C:_temp360huabao_d.log
lea eax, [esp + 0x80]
push 0x104
push eax
call fcn.00401250
add esp, 0x10
lea eax, [esp + 0x78]
push 0
push 0x80000000
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x401968
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.start
mov ecx, esi
call fcn.004016b0
lea eax, [esp + 0x78]
mov ecx, esi
push eax
call fcn.004016b0
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x401820
call fcn.0040b93e
mov ecx, edi
mov dword [esp + 0x74], 0
add esp, 4
mov dword [esp + 0x74], 7
xor eax, eax
mov word [esp + 0x60], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4019c6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x68]
call fcn.00401b80
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.004021b0
xor eax, eax
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 7
mov word [esp + 0x48], ax
call fcn.004023b0
test al, al
je 0x401a2c
lea ecx, [esp + 0x18]
call fcn.00402be0
mov edx, dword [esp + 0x5c]
cmp edx, 8
jb 0x401a68
mov ecx, dword [esp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b6f
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov edx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 7
mov word [esp + 0x48], ax
cmp edx, 8
jb 0x401abb
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ab1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b6f
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov edx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
cmp edx, 8
jb 0x401b0a
mov ecx, dword [esp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b6f
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov edx, dword [esp + 0x74]
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
cmp edx, 8
jb 0x401b59
mov ecx, dword [esp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b6f
push edx
push ecx
call fcn.00407e2f
add esp, 8
mov ecx, dword [esp + 0x284]
pop edi
pop esi
xor ecx, esp
call fcn.00407dee
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040b8ee
int3