Function at 0x40b460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4106ee
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x41713c]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push esi
push dword [0x417940]
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b506
push 0x4024c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource_Error:
push 0x4024c0
push esi
push str.Cant_load_resource:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00401af0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push eax
call fcn.00401af0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x40b7e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40b531
push 0x4024c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LockResource_Error:
push 0x4024c0
push esi
push str.Cant_lock_resource:
jmp 0x40b4ca
push esi
push dword [0x417940]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xa4], eax
cmp ebx, 0x10
jne 0x40b569
push 0x4024c0
push str.Found_version_info
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00401af0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push 3
push 0x411c34
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00404b40
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x40]
push eax
push esi
push dword [ebp - 0xac]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.0040a270
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403290
movzx eax, si
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xa4]
push str.unsigned_char
push 0x417058
mov dword [0x417958], 0
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], ebx
call fcn.00401af0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push ecx
push eax
call fcn.00401ff0
add esp, 0x14
push 0x4024c0
push str.____
push eax
call fcn.00401af0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x411c6c
push 0x417058
call fcn.00401af0
lea eax, [ebp - 0xb0]
push 2
push eax
call fcn.0040ab60
lea eax, [ebp - 0xa8]
push 4
push eax
call fcn.0040ab60
lea eax, [ebp - 0xb4]
push 2
push eax
call fcn.0040ab60
add esp, 0x20
mov ecx, 0x417058
push 0x4024c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0xa8]
push edi
call fcn.0040ab60
add esp, 8
push 0x4024c0
push 0x4024c0
push 0x411c70
push 0x417058
call fcn.00401af0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xa4]
push esi
push dword [ebp - 0xac]
push ebx
call fcn.0040ba70
mov eax, dword [0x417950]
lea ecx, [ebp - 0x28]
add esp, 0x18
push ecx
cmp eax, dword [0x417954]
je 0x40b711
mov ecx, eax
call fcn.00402980
add dword [0x417950], 0x18
jmp 0x40b71c
push eax
mov ecx, 0x41794c
call fcn.00409860
push 9
push str..resource
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00404b40
push 0xd
push str.win_resource_
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00404b40
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00409790
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00409710
add esp, 0x18
lea ecx, [ebp - 0xa0]
call fcn.00403290
lea ecx, [ebp - 0x58]
call fcn.00403290
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00403290
push dword [ebp - 0xa4]
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.0040d4d0
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.00403290
lea ecx, [ebp - 0x28]
call fcn.00403290
lea ecx, [ebp - 0x40]
call fcn.00403290
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.0040ea44
mov esp, ebp
pop ebp
ret