Function at 0x48caf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c407f
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x50c080]
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 0x48d081
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x48cc6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00467cf0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48cb89
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x50
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_getting
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x34], 7
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmova edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, 0x4fc5b0
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, str._size:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0xc8]
add esp, 4
cmp ecx, 7
jbe 0x48d13b
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48d131
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d22b
jmp 0x48d131
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48cd30
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00467cf0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48cca1
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x58
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_loading
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x34], 7
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmova edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, 0x4fc5b0
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, str._resource:
jmp 0x48cc13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
mov esi, eax
call fcn.004962b0
add esp, 4
lea eax, [ebp - 0xc0]
push 0xb0
push 0
push eax
call fcn.00493220
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.00440610
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 0x48cf19
lea ecx, [ebp - 0xdc]
call fcn.00467cf0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48cdce
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x67
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_creating
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x1c], 7
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, str._on_disk__
mov ecx, eax
call fcn.00411050
mov esi, eax
call fcn.0049629d
mov ecx, esi
push dword [eax]
call fcn.0040f7e0
mov edx, 0x4fc624
mov ecx, eax
call fcn.00411050
push eax
call fcn.004113d0
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0xc8]
cmp ecx, 7
jbe 0x48cea4
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48ce9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d22b
push ecx
push edx
call fcn.00490f7d
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.0043ed70
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.0048f5ab
add esp, 4
jmp 0x48d13b
push 0
call fcn.004962b0
add esp, 4
lea ecx, [ebp - 0xc0]
push 0
push edi
push esi
call fcn.0045f780
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xb4]
shr eax, 2
test al, 1
je 0x48cfd2
lea ecx, [ebp - 0xdc]
call fcn.00467cf0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48cf67
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x6d
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Error_writing
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x1c], 7
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, str._to_disk__
jmp 0x48ce34
lea ecx, [ebp - 0xbc]
call fcn.00440530
test eax, eax
jne 0x48d00a
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.00413b00
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.0043ed70
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.0048f5ab
add esp, 4
mov bl, 1
jmp 0x48d13d
lea ecx, [ebp - 0xdc]
call fcn.00467cf0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48d09b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x74
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4ec7a8
mov ecx, eax
call fcn.00411050
mov edx, str.Resource
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x34], 7
lea edx, [ebp + 0x20]
push dword [ebp + 0x30]
cmova edx, dword [ebp + 0x20]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, 0x4fc5b0
mov ecx, eax
call fcn.00411050
cmp dword [ebp + 0x4c], 7
lea edx, [ebp + 0x38]
push dword [ebp + 0x48]
cmova edx, dword [ebp + 0x38]
mov ecx, eax
call fcn.00412550
add esp, 4
mov edx, str._not_found
mov ecx, eax
call fcn.00411050
jmp 0x48cc22
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x48d177
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48d16d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d22b
push ecx
push edx
call fcn.00490f7d
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 0x48d1c1
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48d1b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d22b
push ecx
push edx
call fcn.00490f7d
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 0x48d20b
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48d201
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d22b
push ecx
push edx
call fcn.00490f7d
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.00490c46
mov esp, ebp
pop ebp
ret 0x48
call fcn.004961af
int3