Function at 0x413260
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x21cc]
mov eax, 0x21cc
call fcn.0051dcc0
push 0xffffffffffffffff
push 0x539155
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x21c8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x800
lea eax, [ebp + 0x1000]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
push str.elevate
push str.__s_d
push 0x64
lea eax, [ebp + 0x2000]
push eax
call fcn.00402c90
add esp, 0x14
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x74], 0x40
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], str.runas
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x2000]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x542b18
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x30]
call fcn.00499fe0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push 0x59801c
call fcn.00412af0
lea eax, [ebp - 0x30]
push eax
push 0x59807c
call fcn.00412af0
lea eax, [ebp - 0x30]
push eax
push 0x5980dc
call fcn.00412af0
lea eax, [ebp - 0x30]
push eax
push 0x59813c
call fcn.00412af0
lea eax, [ebp - 0x30]
push eax
push 0x59819c
call fcn.00412af0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x30]
call fcn.0049a510
mov ebx, eax
mov dword [ebp - 0x34], ebx
push esi
push str.winrar_map_
push str._s_d
push 0x800
lea eax, [ebp]
push eax
call fcn.00402c90
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [ebx + 0xf750]
push eax
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4133fb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x413634
cmp byte [ebp - 0x20], 0
je 0x4133ed
push dword [ebp - 0x28]
push eax
call fcn.004ad810
mov eax, dword [ebp - 0x30]
push eax
call fcn.00525b95
add esp, 4
jmp 0x413634
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x14], esi
push 0xf750
call fcn.0051da6d
add esp, 4
mov edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x413437
lea ecx, [edi + 0x10]
call fcn.00472e70
mov byte [ebp - 4], 4
jmp 0x413439
xor edi, edi
mov byte [ebp - 4], 0
mov byte [edi], 0
mov dword [edi + 4], ebx
mov eax, dword [0x57a0c8]
mov dword [edi + 8], eax
push 0x588ac0
lea ecx, [edi + 0x10]
call fcn.0040a6b0
movzx eax, byte [0x595ff0]
mov byte [edi + 0xd540], al
movzx eax, byte [0x595ff1]
mov byte [edi + 0xd541], al
mov eax, dword [0x595ff4]
mov dword [edi + 0xd544], eax
movzx eax, byte [0x595ff8]
mov byte [edi + 0xd548], al
movzx eax, byte [0x595ff9]
mov byte [edi + 0xd549], al
lea edx, [edi + 0xd54a]
xor ecx, ecx
nop
mov ax, word [ecx + 0x595ffa]
mov word [edx], ax
add ecx, 2
lea edx, [edx + 2]
cmp ecx, 0x1020
jb 0x4134a0
lea edx, [edi + 0xe56a]
xor ecx, ecx
mov ax, word [ecx + 0x59701a]
mov word [edx], ax
add ecx, 2
lea edx, [edx + 2]
cmp ecx, 0x1000
jb 0x4134c0
push 0x59801c
lea ecx, [edi + 0xf56c]
call fcn.004114c0
push 0x59807c
lea ecx, [edi + 0xf5cc]
call fcn.004114c0
push 0x5980dc
lea ecx, [edi + 0xf62c]
call fcn.004114c0
push 0x59813c
lea ecx, [edi + 0xf68c]
call fcn.004114c0
push 0x59819c
lea ecx, [edi + 0xf6ec]
call fcn.004114c0
push 0x80
lea eax, [ebp + 0x20c8]
push eax
mov ecx, 0x58eae8
call fcn.004ad440
mov byte [edi + 0x6139], 1
lea ecx, [edi + 0x6038]
lea eax, [ebp + 0x20c8]
push eax
call fcn.004ad7b0
push 0x100
lea eax, [ebp + 0x20c8]
push eax
call fcn.004ad810
push 0xf750
push edi
push esi
call fcn.0051f6b0
add esp, 0xc
push dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
call fcn.0049a1d0
push eax
lea eax, [esi + 0xf750]
push eax
call fcn.0051f6b0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4135d4
push 0x2710
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x4135c6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x4135b0
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
jmp 0x4135db
mov byte [0x57a0f0], 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 0
lea ecx, [edi + 0x10]
call fcn.00411270
push 0xf750
push edi
call fcn.0051da9d
add esp, 8
xor eax, eax
mov word [0x58bad6], ax
jmp 0x4133c9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c8]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x21cc]
pop ebp
ret