Function at 0x7d28f300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x13], 0
test byte [esi + 4], 0x80
mov byte [esp + 0x18], 0
je 0x7d28f37a
mov ebx, dword [esp + 0x30]
mov edi, dword [esi + 0x1c]
push 0x7fe
mov dword [esp + 0x18], edi
push dword [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x7d28f981
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp dword [0x7d2debb4], edi
mov byte [esp + 0x13], 0
mov word [eax + 0xffc], cx
mov ecx, 1
mov eax, dword [esp + 0x18]
movzx eax, al
cmove eax, ecx
mov dword [esp + 0x18], eax
test edi, edi
je 0x7d28f4ed
jmp 0x7d28f61c
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x7d28f395
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 8
mov edi, ecx
lea edx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x7d28f3a0
mov ebx, dword [esp + 0x30]
sub edi, edx
mov eax, 0x7fe
sar edi, 1
cmp edi, eax
cmova edi, eax
lea esi, [edi + edi]
push esi
push ecx
push dword [ebx + 0x10]
mov dword [esp + 0x28], esi
call sub.ntdll.dll_memcpy
mov eax, dword [ebx + 0x10]
add esp, 0xc
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 1
mov word [esi + eax], cx
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x7d28f499
mov eax, dword [esp + 0x2c]
test byte [eax + 4], 4
je 0x7d28f981
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x7d28f981
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x7d28f415
sub esi, edx
sar esi, 1
cmp esi, 0x800
jae 0x7d28f981
add edi, esi
cmp edi, 0x7fe
ja 0x7d28f981
add esi, esi
push esi
push ecx
push dword [ebx + 0x10]
call sub.ntdll.dll_memcpy
mov eax, dword [ebx + 0x10]
mov ecx, 0x5c
push dword [esp + 0x28]
mov word [esi + eax], cx
mov eax, dword [esp + 0x3c]
push dword [eax + 8]
mov eax, dword [ebx + 0x10]
add eax, 2
add eax, esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebx + 0x10]
add esp, 0x18
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 1
mov word [eax + edi*2 + 2], cx
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x7d28f981
push 0
push 0
push 0
push 0x1000002
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x7d28f5ce
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
cmp edi, 0xc1
jne 0x7d28f5a1
mov eax, dword [esp + 0x2c]
test byte [eax + 4], 8
jne 0x7d28f5a1
push dword [ebx + 0x14]
push esi
call fcn.7d290470
test eax, eax
je 0x7d28f981
xor edi, edi
push dword [ebx + 0x14]
call fcn.7d28e9a0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x7d28f500
mov eax, dword [ebx + 0x18]
xor ecx, ecx
mov word [eax + 0xfec], cx
test edi, edi
je 0x7d28f852
cmp byte [esp + 0x18], cl
jne 0x7d28f56d
cmp ebp, 1
jbe 0x7d28f56d
mov edx, dword [ebx + 0x18]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d28f540
sub ecx, esi
mov eax, 0x2e
sar ecx, 1
push 0xa
mov word [edx + ecx*2], ax
mov eax, dword [ebx + 0x18]
lea eax, [eax + ecx*2]
add eax, 2
push eax
push ebp
call sub.ntdll.dll__itow
add esp, 0xc
mov edx, dword [str..config]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x7d28f575
mov edi, dword [ebx + 0x18]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d28f590
jmp 0x7d28f8bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xc1
jne 0x7d28f5bb
push 0xc000007b
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push edi
mov ebp, eax
call esi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x7d28f613
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 8
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x13], 1
test byte [esi + 4], 8
je 0x7d28f660
mov ebp, dword [esi + 0x14]
test ebp, ebp
jne 0x7d28f638
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x57
call ebx
jmp 0x7d28f965
push 0x18
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
test ebp, 0xffff0000
mov eax, 0
cmovne ebp, eax
jmp 0x7d28f6b8
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x7d28f290
push 0x18
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x30], esi
test esi, esi
je 0x7d28f69d
mov ebp, dword [esp + 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7d28f6ae
push 0x715
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp dword [0x7d2b735c], 0x1770
jb 0x7d28f6d4
cmp byte [esp + 0x18], 0
je 0x7d28f7d7
cmp ebp, 1
jmp 0x7d28f6dd
test ebp, ebp
jne 0x7d28f6e3
cmp byte [esp + 0x18], 0
je 0x7d28f7d7
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x7d28f6f0
mov eax, dword [ebx + 0x18]
xor ecx, ecx
mov word [eax + 0xfec], cx
cmp byte [esp + 0x18], cl
jne 0x7d28f74d
cmp ebp, 1
jbe 0x7d28f74d
mov edx, dword [ebx + 0x18]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7d28f720
sub ecx, esi
mov eax, 0x2e
sar ecx, 1
push 0xa
mov word [edx + ecx*2], ax
mov eax, dword [ebx + 0x18]
lea eax, [eax + ecx*2]
add eax, 2
push eax
push ebp
call sub.ntdll.dll__itow
add esp, 0xc
mov edx, dword [str..manifest]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x7d28f755
mov edi, dword [ebx + 0x18]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d28f770
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 3
push 0
mov ecx, edx
push 1
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x7d28f7d7
push dword [ebx + 0x14]
push eax
call fcn.7d290470
test eax, eax
je 0x7d28f95f
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x7d28f7c0
mov edi, dword [esp + 0x14]
jmp 0x7d28f82c
mov edi, dword [esp + 0x30]
test edi, edi
je 0x7d28f950
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x7d28f940
cmp esi, 0x80000
jae 0x7d28f92c
push edi
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x7d28f950
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebx + 0x14]
call sub.ntdll.dll_memcpy
add esp, 0xc
cmp dword [0x7d2debb4], edi
jne 0x7d28f4ed
mov eax, dword [esp + 0x2c]
test ebp, ebp
mov ecx, 1
cmovne ecx, ebp
or dword [eax + 4], 8
mov dword [eax + 0x14], ecx
jmp 0x7d28f4ed
push 0x2e
push dword [ebx + 0x18]
call sub.ntdll.dll_wcsrchr
mov esi, eax
add esp, 8
test esi, esi
je 0x7d28f892
push dword [0x7d2b6d80]
push esi
call sub.ntdll.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x7d28f892
mov ecx, dword [str..config]
sub esi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x7d28f880
jmp 0x7d28f8d1
mov edx, dword [str..config]
mov esi, edx
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x7d28f8a0
mov edi, dword [ebx + 0x18]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x7d28f8b3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
push 0
push 0
push 3
push 0
push 1
push 1
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x7d28f8f5
mov eax, dword [ebx + 0x18]
xor ecx, ecx
mov word [eax], cx
jmp 0x7d28f902
push dword [ebx + 0x1c]
push eax
call fcn.7d290470
test eax, eax
je 0x7d28f95f
push dword [ebx + 0x1c]
call fcn.7d28e9a0
cmp byte [esp + 0x13], 0
je 0x7d28f918
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret 8
push esi
push dword [0x7d2b6d8c]
push 0x89d
call sym.SbieDll.dll_SbieApi_Log
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x36b4
push eax
call ebx
jmp 0x7d28f965
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call ebx
jmp 0x7d28f965
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [esp + 0x13], 0
je 0x7d28f981
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call ebx
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 8