Function at 0x411080
Capabilities:
Extract resource via kernel32 functions
Get system information on windows
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509de2
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x546330]
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, ecx
mov dword [ebp - 0x280], eax
movzx eax, word [eax]
push 0x534290
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4113e9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4113e9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x4113e9
lea eax, [ebp - 0x274]
mov dword [ebp - fcn.00415250], vtable.std::_Func_impl_no_alloc_class__private:_bool___thiscall_Installer::ExtractProgramFile_void_::_2::_lambda_1___void___.0
mov dword [ebp - 0x2b4], eax
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x294], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x244], 0
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 1
call fcn.00415250
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x244], eax
test ecx, ecx
je 0x41116b
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2b8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 4], 2
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 0x26c], edi
test edi, edi
jne 0x411191
xor bl, bl
jmp 0x4113ad
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004e2580
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x5505e8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 1
push 3
push 0
push 7
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x288], esi
test esi, esi
je 0x41139e
cmp esi, 0xffffffff
je 0x41139e
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x27c], eax
test eax, eax
jne 0x411216
xor bl, bl
jmp 0x4113a4
mov edi, dword [edi]
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
mov ebx, dword [ebp - 0x26c]
xor edx, edx
div dword [ebp - 0x2e8]
mov eax, dword [ebx]
push 0
sub edi, edx
push edi
push 0
push 4
push dword [ebp - 0x27c]
sub eax, edi
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x278], eax
test eax, eax
jne 0x411273
push dword [ebp - 0x27c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
call edi
jmp 0x4113aa
lea eax, [ebp - 0x278]
mov dword [ebp - fcn.00415220], vtable.std::_Func_impl_no_alloc_class__private:_bool___thiscall_Installer::ExtractProgramFile_void_::_2::_lambda_3___void___.0
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x28c], eax
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 6
call fcn.00415220
mov ecx, dword [ebp - 0x2bc]
mov dword [ebp - 0x21c], eax
test ecx, ecx
je 0x4112de
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2e0]
cmp ecx, eax
setne al
push eax
call edx
mov eax, dword [ebp - 0x280]
add eax, 0xfc
cmp dword [eax + 0x14], 8
jb 0x4112f1
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411343
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x284]
add eax, dword [ebp - 0x26c]
push 0
push ecx
mov dword [ebp - 0x284], 0
push dword [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411343
mov bl, 1
jmp 0x411345
xor bl, bl
test edi, edi
je 0x411354
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x41135a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x411394
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x411394
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x240]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x27c]
call edi
jmp 0x4113aa
xor bl, bl
test esi, esi
je 0x4113ad
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov dword [ebp - 4], 8
mov esi, dword [ebp - 0x244]
test esi, esi
je 0x4113e5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp - 0x244]
test esi, esi
je 0x4113e5
mov edx, dword [esi]
lea eax, [ebp - 0x268]
cmp esi, eax
setne cl
movzx ecx, cl
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov al, bl
jmp 0x4113eb
xor al, al
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.004bd6ac
mov esp, ebp
pop ebp
ret