Function at 0x401010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov edx, str.starting_process
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ebx
push esi
push edi
mov dword [esp + 0x1c], eax
call fcn.00401230
xor edi, edi
call dword [sym.imp.libxml2.dll_xmlInitMemory]
call dword [sym.imp.libxml2.dll_xmlInitParser]
cmp dword [ebp + 8], 1
jle 0x40121a
call dword [sym.imp.libexslt.dll_exsltRegisterAll]
push 1
call dword [sym.imp.libxml2.dll_xmlSubstituteEntitiesDefault]
add esp, 4
call dword [sym.imp.libxml2.dll___xmlLoadExtDtdDefaultValue]
push 0x403210
push 0x65
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40121a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40115f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [ebx + 1]
mov esi, eax
push edi
call fcn.004016d3
add esp, 4
mov ebx, eax
push edi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + 0x10]
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
call fcn.004016d3
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edi, eax
shr edi, 3
test al, 7
je 0x4010f8
inc edi
test edi, edi
je 0x40113a
sub ebx, esi
nop
mov eax, dword [ebx + esi]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + esi + 4]
push ecx
mov dword [esp + 0x1c], eax
call fcn.004015c0
mov eax, dword [esp + 0x18]
lea esi, [esi + 8]
mov dword [esi - 8], eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi - 4], eax
sub edi, 1
jne 0x401100
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
mov byte [esi + eax - 8], 0
call dword [sym.imp.libxml2.dll_xmlCharStrdup]
add esp, 4
push eax
call dword [sym.imp.libxml2.dll_xmlParseDoc]
add esp, 4
push eax
call dword [sym.imp.libxslt.dll_xsltParseStylesheetDoc]
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x1c]
push dword [esi + 4]
call dword [sym.imp.libxml2.dll_xmlParseFile]
add esp, 4
mov ebx, eax
push ebx
push edi
call dword [sym.imp.libxslt.dll_xsltNewTransformContext]
push _CxxThrowException
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.libxslt.dll_xsltSetCtxtParseOptions]
push dword [esi + 8]
call dword [sym.imp.libxml2.dll_xmlCanonicPath]
add esp, 0x14
mov esi, eax
push dword [esp + 0xc]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 0
push 0
push esi
push 0
push ebx
push edi
call dword [sym.imp.libxslt.dll_xsltRunStylesheetUser]
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4011e1
mov eax, dword [esp + 0xc]
push dword [eax + 0xa0]
call dword [sym.imp.libxml2.dll_xmlCtxtGetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 4
mov edx, str.error_when_transforming_file
call fcn.00401230
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.transformation_ok
call fcn.00401230
push edi
call dword [sym.imp.libxslt.dll_xsltFreeStylesheet]
add esp, 4
push ebx
call dword [sym.imp.libxml2.dll_xmlFreeDoc]
add esp, 4
call dword [sym.imp.libxslt.dll_xsltCleanupGlobals]
call dword [sym.imp.libxml2.dll_xmlCleanupParser]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret