Function at 0x4f1a90
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b754
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0xfc], 0
mov dword [ebx], vtable.NWebAdvisor::NAccessCaller::library_loader.0
mov dword [ebx + 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0xf
mov byte [ebx + 4], 0
lea esi, [ebx + 0x20]
mov dword [ebx + 0x1c], 0
mov dword [ebp - 4], 1
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0xb0
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0050cdd0
add esp, 0xc
mov dword [ebp - 0xf8], 0x5cb724
mov dword [ebp - 0xe8], 0x5cb71c
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x90], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
push 0
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xfc], 1
call fcn.0043d3b0
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xec], eax
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xfc], eax
mov eax, dword [ebp - 0xf8]
push 8
mov dword [ebp - 4], 9
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
mov dword [ebp - 0xe0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0050a489
add esp, 4
mov dword [ebp - 0x100], eax
test eax, eax
je 0x4f1c52
xorps xmm0, xmm0
movq qword [eax], xmm0
push 1
mov byte [ebp - 4], 0xa
call fcn.004f2ee4
mov ecx, dword [ebp - 0x100]
add esp, 4
mov dword [ecx + 4], eax
jmp 0x4f1c54
xor ecx, ecx
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xe0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
push 0x5b3334
push str.ACCESS_LIB_CALLER
push 0
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xfc], eax
test eax, eax
jne 0x4f1da9
lea eax, [ebp - 0xe8]
push str.FindResourceA_failed._Error
push eax
call fcn.0043d770
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0043b380
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043b000
push eax
lea ecx, [ebx + 4]
call fcn.00420dc0
mov edx, dword [ebp - 0x10c]
cmp edx, 0x10
jb 0x4f1d99
mov ecx, dword [ebp - 0x120]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f1d8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f216e
push edx
push ecx
call fcn.0050a4c5
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x4f2150
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4f1ddb
push 0xd
push str.DLL_size_is_0
lea ecx, [ebx + 4]
call fcn.0042fb80
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x4f2150
push dword [ebp - 0xfc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4f1e47
lea eax, [ebp - 0xe8]
push str.LoadResource_failed._Error
push eax
call fcn.0043d770
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0043b380
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043b000
push eax
lea ecx, [ebx + 4]
call fcn.00420dc0
lea ecx, [ebp - 0x120]
call fcn.00419420
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x4f2150
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x4f1eb2
lea eax, [ebp - 0xe8]
push str.LockResource_failed._Error
push eax
call fcn.0043d770
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0043b380
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043b000
push eax
lea ecx, [ebx + 4]
call fcn.00420dc0
lea ecx, [ebp - 0x120]
call fcn.00419420
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x4f2150
lea eax, [ebp - 0x48]
push eax
call fcn.004f2300
add esp, 4
push 0x5b33b4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.0041c150
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
add ecx, 0xe
add eax, ecx
mov byte [ebp - 4], 0xd
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x4f1f04
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4f1ef9
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x4f1f10
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0044c1d0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4f1f1a
mov edx, dword [esi]
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
push edx
cmovae ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 0
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4f1fa9
push str.GetTempFileNameW_failed._Error
lea eax, [ebp - 0xe8]
push eax
call fcn.0043d770
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0043b380
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043b000
push eax
lea ecx, [ebx + 4]
call fcn.00420dc0
lea ecx, [ebp - 0x120]
call fcn.00419420
lea ecx, [ebp - 0x30]
call fcn.004191b0
lea ecx, [ebp - 0x48]
call fcn.004191b0
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x4f2150
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f1fb3
mov eax, dword [esi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xfc], eax
cmp eax, 0xffffffff
jne 0x4f203e
lea eax, [ebp - 0xe8]
push str.CreateFileW_failed._Error
push eax
call fcn.0043d770
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0043b380
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0043b000
push eax
lea ecx, [ebx + 4]
call fcn.00420dc0
lea ecx, [ebp - 0x120]
call fcn.00419420
lea ecx, [ebp - 0x30]
call fcn.004191b0
lea ecx, [ebp - 0x48]
call fcn.004191b0
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x4f2150
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push dword [ebp - 0x100]
push dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4f209d
mov eax, dword [ebp - 0x100]
cmp dword [ebp - 0x18], eax
jne 0x4f209d
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x4f2081
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x1c], eax
test eax, eax
jne 0x4f1f89
push str.LoadLibraryW_failed._Error
jmp 0x4f1f44
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xe8]
push str.CreateFileW_failed._Error
push eax
call fcn.0043d770
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0043b380
push str.__size_to_write
push eax
call fcn.0043d770
add esp, 8
mov ecx, eax
push dword [ebp - 0x100]
call fcn.0043b380
push str.__written
push eax
call fcn.0043d770
add esp, 8
mov ecx, eax
push dword [ebp - 0x18]
jmp 0x4f1f5e
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
ret
call fcn.00522dda
int3