Function at 0x1000a870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0xc]
test byte [0x1000c038], 8
jne 0x1000aa20
mov dword [esp], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000a9e8
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x1000a9a8
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
test esi, esi
je 0x1000aa90
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x14], eax
call eax
mov ecx, eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
add ecx, 1
mov dword [esp + 4], 2
mov dword [esp], ecx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 0x14], ecx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x14]
call eax
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov edx, edi
sub esp, 0x18
mov word [edi + ecx*2], ax
mov eax, dword [ebp + 8]
mov ecx, 1
call sym._string_register
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1000a9cb
test byte [0x1000c038], 4
jne 0x1000aad0
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
test byte [0x1000c038], 4
jne 0x1000ab00
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov edi, eax
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov esi, eax
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__p_____s__s__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.Registrar_ResourceRegisterSz
mov dword [esp + 4], 0x1000c038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000a889
test byte [0x1000c038], 4
je 0x1000a9b5
mov dword [esp + 0xc], str.could_not_load_resource_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000c038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1_2
jmp 0x1000a9b5
mov dword [esp + 0xc], str.Could_not_find_source_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000c038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1_2
jmp 0x1000a9b5
mov dword [esp + 0xc], str.Could_not_load_resource_file_n
mov dword [esp + 8], str.resource_register
mov dword [esp + 4], 0x1000c038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.1_2
jmp 0x1000a9f5