Function at 0x48c240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c362f
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x50b080]
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 0x48c7d1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x48c3be
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00467d30
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48c2d9
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x50
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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, 0x4fb5f8
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.0041b670
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0xc8]
add esp, 4
cmp ecx, 7
jbe 0x48c88b
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48c881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c97b
jmp 0x48c881
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48c480
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.00467d30
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48c3f1
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x58
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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, 0x4fb5f8
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 0x48c363
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
mov esi, eax
call fcn.00495a00
add esp, 4
lea eax, [ebp - 0xc0]
push 0xb0
push 0
push eax
call fcn.00492970
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.00440910
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 0x48c669
lea ecx, [ebp - 0xdc]
call fcn.00467d30
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48c51e
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x67
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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.004959ed
mov ecx, esi
push dword [eax]
call fcn.0040f7e0
mov edx, 0x4fb66c
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 0x48c5f4
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48c5ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c97b
push ecx
push edx
call fcn.004906cd
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.0043f070
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.0048ecfb
add esp, 4
jmp 0x48c88b
push 0
call fcn.00495a00
add esp, 4
lea ecx, [ebp - 0xc0]
push 0
push edi
push esi
call fcn.0045f970
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xb4]
shr eax, 2
test al, 1
je 0x48c722
lea ecx, [ebp - 0xdc]
call fcn.00467d30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48c6b7
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x6d
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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 0x48c584
lea ecx, [ebp - 0xbc]
call fcn.00440830
test eax, eax
jne 0x48c75a
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.0043f070
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.0048ecfb
add esp, 4
mov bl, 1
jmp 0x48c88d
lea ecx, [ebp - 0xdc]
call fcn.00467d30
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x48c7eb
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50e6d0
call fcn.00412550
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonResourceFileExtractor.cpp
mov ecx, eax
call fcn.00411050
mov edx, 0x4eb568
mov ecx, eax
call fcn.00411050
push 0x74
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4eb7a8
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, 0x4fb5f8
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 0x48c372
push ecx
push edx
call fcn.004906cd
add esp, 8
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x48c8c7
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48c8bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c97b
push ecx
push edx
call fcn.004906cd
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 0x48c911
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48c907
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c97b
push ecx
push edx
call fcn.004906cd
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 0x48c95b
mov edx, dword [ebp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48c951
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c97b
push ecx
push edx
call fcn.004906cd
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.00490396
mov esp, ebp
pop ebp
ret 0x48
call fcn.004958ff
int3