Function at 0x427f20
Capabilities:
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 0x45e50e
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x471644]
xor eax, ebp
mov dword [ebp - 0x30], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x870], ecx
lea ecx, [ebp - 0x14]
call fcn.0042a4e0
mov dword [ebp - 4], 0
push 0xa
push 0x2710
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4281db
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x848], eax
xor ecx, ecx
mov word [ebp - 0x834], cx
push 0x7fe
push 0
lea edx, [ebp - 0x832]
push edx
call fcn.004493d0
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x834]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004296f0
push str.OutsideFileList.xml
lea ecx, [ebp - 0x14]
call fcn.004294b0
push 1
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x844], 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x83c], 0
mov edx, 0xfeff
mov word [ebp - 0x2c], dx
push 0
push 0x80
push 2
lea eax, [ebp - 0x844]
push eax
push 0
push 0xc0000000
lea ecx, [ebp - 0x14]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
je 0x42805b
cmp dword [ebp - 0x838], 0xffffffff
jne 0x42807f
mov dword [ebp - 0x858], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042a380
mov eax, dword [ebp - 0x858]
jmp 0x428227
lea ecx, [ebp - 0x14]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x84c], 0
push 0
lea ecx, [ebp - 0x84c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4281c0
lea ecx, [ebp - 0x854]
call fcn.0042a4e0
mov byte [ebp - 4], 1
push 0x6a
lea edx, [ebp - 0x85c]
push edx
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x874], eax
mov eax, dword [ebp - 0x874]
mov dword [ebp - 0x878], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424a80
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x878]
call fcn.0042a350
push eax
lea edx, [ebp - 0x854]
push edx
call fcn.0042a320
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x85c]
call fcn.0042a380
push 0x69
lea eax, [ebp - 0x860]
push eax
call fcn.00429af0
add esp, 8
mov dword [ebp - 0x87c], eax
push 0
mov ecx, dword [ebp - 0x87c]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x854]
call fcn.0042a350
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x860]
call fcn.0042a380
push 0
call fcn.00448b8c
mov dword [ebp - 0x864], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x854]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042a380
mov eax, dword [ebp - 0x864]
jmp 0x428227
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x848]
push edx
call fcn.00429790
jmp 0x4281fc
mov dword [ebp - 0x868], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042a380
mov eax, dword [ebp - 0x868]
jmp 0x428227
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00429200
mov dword [ebp - 0x86c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042a380
mov eax, dword [ebp - 0x86c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00446d08
mov esp, ebp
pop ebp
ret 4