Function at 0x426e10
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e6c6
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x471644]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x884], ecx
push str.InitCfgXMLInfo_in
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x466e00
push 0xa0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42720a
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
push 0
push 0x23
lea ecx, [ebp - 0x84c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x84c]
push edx
lea ecx, [ebp - 0x40]
call fcn.00429710
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x40]
call fcn.00428d00
mov dword [ebp - 0x888], eax
mov ecx, dword [ebp - 0x888]
push ecx
push 0x466e08
call fcn.00428e30
add esp, 8
mov byte [ebp - 0x85d], al
lea ecx, [ebp - 0x864]
call fcn.0042a380
movzx edx, byte [ebp - 0x85d]
test edx, edx
je 0x426ef7
push 0x466e0c
lea ecx, [ebp - 0x40]
call fcn.004294b0
mov dword [ebp - 0x854], 0
push 0x466e10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00429e40
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x854], 0xffffffff
je 0x426feb
mov edx, dword [ebp - 0x854]
add edx, 1
push edx
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00428c40
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], 2
je 0x426f53
cmp dword [ebp - 0x854], 0xffffffff
jne 0x426f5a
jmp 0x426f1a
mov eax, dword [ebp - 0x854]
push eax
lea ecx, [ebp - 0x86c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00428d90
mov dword [ebp - 0x88c], eax
mov ecx, dword [ebp - 0x88c]
call fcn.0042a350
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x865], al
lea ecx, [ebp - 0x86c]
call fcn.0042a380
movzx edx, byte [ebp - 0x865]
test edx, edx
je 0x426fe6
mov eax, dword [ebp - 0x854]
push eax
lea ecx, [ebp - 0x870]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00428d90
mov dword [ebp - 0x890], eax
push 0
mov ecx, dword [ebp - 0x890]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x870]
call fcn.0042a380
jmp 0x426f1a
push str.huatusoftcommoncorecfg.xml
lea ecx, [ebp - 0x40]
call fcn.004294b0
lea ecx, [ebp - 0x40]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 1
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x3c], 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
mov edx, 0xfeff
mov word [ebp - 0x2c], dx
push 0
push 0x80
push 2
lea eax, [ebp - 0x3c]
push eax
push 0
push 0xc0000000
lea ecx, [ebp - 0x40]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x427072
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4270a2
mov dword [ebp - 0x874], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042a380
mov eax, dword [ebp - 0x874]
jmp 0x427213
mov dword [ebp - 0x850], 0
push 0
lea ecx, [ebp - 0x850]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4271da
lea ecx, [ebp - 0x85c]
call fcn.0042a4e0
mov byte [ebp - 4], 2
push 0x6a
lea edx, [ebp - 0x878]
push edx
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x894], eax
mov eax, dword [ebp - 0x894]
mov dword [ebp - 0x898], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424a80
add esp, 4
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x898]
call fcn.0042a350
push eax
lea edx, [ebp - 0x85c]
push edx
call fcn.0042a320
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x878]
call fcn.0042a380
push 0x69
lea eax, [ebp - 0x87c]
push eax
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x89c], eax
push 0
mov ecx, dword [ebp - 0x89c]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x85c]
call fcn.0042a350
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x87c]
call fcn.0042a380
push 0
call fcn.00448b8c
mov dword [ebp - 0x880], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x85c]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042a380
mov eax, dword [ebp - 0x880]
jmp 0x427213
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x44]
push edx
call fcn.00429790
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042a380
jmp 0x42720e
xor eax, eax
jmp 0x427213
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.00446d08
mov esp, ebp
pop ebp
ret