Function at 0x47f1a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b603f
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4de080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x38]
cmp dword [ebp + 0x4c], 7
lea eax, [ebp + 0x20]
push 0x409
cmova ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 7
push ecx
cmova eax, dword [ebp + 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
je 0x47f731
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x47f31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00467c30
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x47f239
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x50
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4c1738
mov ecx, eax
call fcn.00411040
mov edx, str.Error_getting
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x34], 7
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmova edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, 0x4ce3f0
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, str._size:
mov ecx, eax
call fcn.00411040
push esi
mov ecx, eax
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0xc8]
add esp, 4
cmp ecx, 7
jbe 0x47f7eb
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47f7e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f8db
jmp 0x47f7e1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x47f3e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00467c30
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x47f351
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x58
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4c1738
mov ecx, eax
call fcn.00411040
mov edx, str.Error_loading
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x34], 7
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmova edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, 0x4ce3f0
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, str._resource:
jmp 0x47f2c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
mov esi, eax
call fcn.00488890
add esp, 4
lea eax, [ebp - 0xc0]
push 0xb0
push 0
push eax
call fcn.00485800
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
lea ecx, [ebp - 0xc0]
cmova eax, dword [ebp + 8]
add esp, 4
push 0x32
push eax
call fcn.00440590
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xb4], 6
je 0x47f5c9
lea ecx, [ebp - 0xdc]
call fcn.00467c30
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x47f47e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x67
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4c1738
mov ecx, eax
call fcn.00411040
mov edx, str.Error_creating
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x1c], 7
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, str._on_disk__
mov ecx, eax
call fcn.00411040
mov esi, eax
call fcn.0048887d
mov ecx, esi
push dword [eax]
call fcn.0040f7e0
mov edx, 0x4ce464
mov ecx, eax
call fcn.00411040
push eax
call fcn.004113c0
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0xc8]
cmp ecx, 7
jbe 0x47f554
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47f54a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f8db
push ecx
push edx
call fcn.0048355d
add esp, 8
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.0043ecf0
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00481c5b
add esp, 4
jmp 0x47f7eb
push 0
call fcn.00488890
add esp, 4
lea ecx, [ebp - 0xc0]
push 0
push edi
push esi
call fcn.0045f700
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xb4]
shr eax, 2
test al, 1
je 0x47f682
lea ecx, [ebp - 0xdc]
call fcn.00467c30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x47f617
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x6d
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4c1738
mov ecx, eax
call fcn.00411040
mov edx, str.Error_writing
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x1c], 7
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, str._to_disk__
jmp 0x47f4e4
lea ecx, [ebp - 0xbc]
call fcn.004404b0
test eax, eax
jne 0x47f6ba
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00413a80
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.0043ecf0
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00481c5b
add esp, 4
mov bl, 1
jmp 0x47f7ed
lea ecx, [ebp - 0xdc]
call fcn.00467c30
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x47f74b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0x74
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4c1738
mov ecx, eax
call fcn.00411040
mov edx, str.Resource
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x34], 7
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmova edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, 0x4ce3f0
mov ecx, eax
call fcn.00411040
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00412510
add esp, 4
mov edx, str._not_found
mov ecx, eax
call fcn.00411040
jmp 0x47f2d2
push ecx
push edx
call fcn.0048355d
add esp, 8
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x47f827
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47f81d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f8db
push ecx
push edx
call fcn.0048355d
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 7
jbe 0x47f871
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47f867
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f8db
push ecx
push edx
call fcn.0048355d
add esp, 8
mov ecx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp ecx, 7
jbe 0x47f8bb
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47f8b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47f8db
push ecx
push edx
call fcn.0048355d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00483226
mov esp, ebp
pop ebp
ret 0x48
call fcn.0048878f
int3