Function at 0x40e280
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x5470bc]
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 eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push str.CInstallCtrl::LoadResource____r_n
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.004d8530
add esp, 0xc
mov dword [ebp - 0xc0], 0x532d6c
mov dword [ebp - 0xb0], 0x532d7c
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa8]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 1
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x5c], 0x50
movlpd qword [ebp - 0xb8], xmm0
call fcn.004084e0
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xb4], eax
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xc4], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0xa8]
mov ecx, eax
mov dword [ebp - 0xfc], eax
call fcn.00408420
mov dword [ebp - 0xa8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 0x532e58
push ecx
push ebx
push ecx
push 0x533510
push ecx
push edi
push ecx
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 7
push 0x533524
push eax
call fcn.00408840
add esp, 0xc
push eax
call fcn.00408840
add esp, 0xc
push eax
call fcn.00408840
add esp, 0xc
mov ecx, eax
call fcn.0040fc30
add esp, 4
push eax
call fcn.00408840
add esp, 8
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0xc0]
push eax
call fcn.00406a30
push eax
mov byte [ebp - 4], 8
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xdc]
cmp eax, 8
jb 0x40e482
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.004024e0
push edi
movzx eax, bx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40e5aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004045b0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd8]
push 0x17
xor eax, eax
mov dword [ebp - 0xc4], 7
push 0x53353c
mov dword [ebp - 0xc8], edi
mov word [ebp - 0xd8], ax
call fcn.004020c0
push esi
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004087a0
add esp, 0xc
push eax
mov byte [ebp - 4], 0xb
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov eax, dword [ebp - 0xdc]
cmp eax, 8
jb 0x40e529
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe0], 0
cmp eax, 8
jb 0x40e564
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xc8], 0
cmp eax, 8
jb 0x40e6a9
inc eax
lea ecx, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
call fcn.004024e0
xor edi, edi
jmp 0x40e7bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40e6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004045b0
add esp, 8
mov esi, eax
push str.::LoadResource__
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xc
call fcn.00401f30
push esi
push eax
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
push eax
call fcn.004087a0
add esp, 0xc
push eax
mov byte [ebp - 4], 0xe
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
mov eax, dword [ebp - 0xdc]
cmp eax, 8
jb 0x40e62c
inc eax
lea ecx, [ebp - 0xf0]
push eax
push dword [ebp - 0xf0]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xe0], 0
cmp eax, 8
jb 0x40e667
inc eax
lea ecx, [ebp - 0xd8]
push eax
push dword [ebp - 0xd8]
call fcn.004024e0
xor eax, eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xc8], 0
cmp eax, 8
jb 0x40e6a2
inc eax
lea ecx, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
call fcn.004024e0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
jmp 0x40e7bf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0xf8]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], eax
test eax, eax
jne 0x40e743
call esi
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004045b0
add esp, 8
mov esi, eax
push str.::SizeofResource__
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xf
call fcn.00401f30
push esi
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x10
push eax
call fcn.004087a0
add esp, 0xc
push eax
mov byte [ebp - 4], 0x11
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
lea ecx, [ebp - 0x114]
call fcn.00401ef0
lea ecx, [ebp - 0xf0]
call fcn.00401ef0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 7
call fcn.00401ef0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x40e7bf
call esi
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004045b0
add esp, 8
mov esi, eax
push str.::LockResource__
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0x12
call fcn.00401f30
push esi
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x13
push eax
call fcn.004087a0
add esp, 0xc
push eax
mov byte [ebp - 4], 0x14
call fcn.004055a0
mov ecx, eax
call fcn.004056d0
lea ecx, [ebp - 0x114]
call fcn.00401ef0
lea ecx, [ebp - 0xf0]
call fcn.00401ef0
lea ecx, [ebp - 0xd8]
call fcn.00401ef0
lea ecx, [ebp - 0x58]
call fcn.00406a50
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0x15
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.0041ba11
add esp, 4
mov eax, edi
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.004264c2
mov esp, ebp
pop ebp
ret 0x10