Function at 0x10050880
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0fb9
mov eax, dword fs:[0]
push eax
mov eax, 0x29f8
call fcn.100a8220
mov eax, dword [0x101279d8]
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 dword [ebp - 0x2a04], ecx
push str.unrar.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x100508ef
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x10050c21
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RAROpenArchiveEx
push edi
call esi
push str.RARCloseArchive
push edi
mov ebx, eax
call esi
push str.RARReadHeaderEx
push edi
mov dword [ebp - 0x29f8], eax
call esi
push str.RARProcessFile
push edi
mov dword [ebp - 0x29f0], eax
call esi
push str.RARSetChangeVolProc
push edi
mov dword [ebp - 0x2a00], eax
call esi
push str.RARSetProcessDataProc
push edi
mov dword [ebp - 0x29fc], eax
call esi
push str.RARSetPassword
push edi
mov dword [ebp - 0x29f4], eax
call esi
test ebx, ebx
je 0x10050c00
cmp dword [ebp - 0x29f8], 0
je 0x10050c00
cmp dword [ebp - 0x29f0], 0
je 0x10050c00
cmp dword [ebp - 0x2a00], 0
je 0x10050c00
cmp dword [ebp - 0x29fc], 0
je 0x10050c00
cmp dword [ebp - 0x29f4], 0
je 0x10050c00
test eax, eax
je 0x10050c00
push 0x9c
lea ecx, [ebp - 0x1b0]
push 0
push ecx
call fcn.100a7150
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.100ab932
add esp, 0x18
cmp eax, 0xffffffff
jne 0x100509db
mov byte [ebp - 0x114], 0
lea ecx, [ebp - 0x1b0]
lea eax, [ebp - 0x114]
push ecx
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x1a0], 0
call ebx
mov esi, eax
test esi, esi
jne 0x10050a1e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.100c7b50
jmp 0x10050c2d
push 0x1004e100
push esi
call dword [ebp - 0x29f4]
lea edx, [ebp - 0x29ec]
push edx
push esi
mov dword [ebp - 0x11c0], 0
call dword [ebp - 0x29f0]
test eax, eax
jne 0x10050be6
lea ebx, [ebx]
lea eax, [ebp - 0x19ec]
push eax
lea ecx, [ebp - 0x29f4]
call fcn.10001e10
push 4
lea ecx, [ebp - 0x29fc]
push ecx
lea ecx, [ebp - 0x29f4]
mov byte [ebp - 4], 1
call fcn.100328b0
push str..sub
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.100015a0
test eax, eax
lea ecx, [ebp - 0x29fc]
sete bl
mov byte [ebp - 4], 1
call fcn.100c7b50
test bl, bl
jne 0x10050ad4
push 0
push 0
push 0
push esi
call dword [ebp - 0x2a00]
lea ecx, [ebp - 0x29f4]
mov byte [ebp - 4], bl
call fcn.100c7b50
lea edx, [ebp - 0x29ec]
push edx
push esi
call dword [ebp - 0x29f0]
test eax, eax
je 0x10050a50
jmp 0x10050be6
mov dword [ebp - 0x29f0], 0
mov eax, dword [ebp - 0x11e0]
push eax
lea ecx, [ebp - 0x29f0]
mov byte [ebp - 4], 3
call fcn.1000f800
test al, al
jne 0x10050b2d
push esi
call dword [ebp - 0x29f8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x29f0]
push ecx
call fcn.1008e660
add esp, 4
lea ecx, [ebp - 0x29f4]
call fcn.100c7b50
lea ecx, [ebp + 8]
call fcn.100c7b50
jmp 0x10050c2d
mov ebx, dword [ebp - 0x29f0]
push 0
push 0
push 1
push esi
mov dword [0x1012b94c], ebx
mov dword [0x1012b950], 0
call dword [ebp - 0x2a00]
test eax, eax
je 0x10050b65
push esi
call dword [ebp - 0x29f8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
jmp 0x10050b0d
mov ebx, dword [ebp - 0x2a04]
mov edx, dword [ebx + 0x114]
mov eax, dword [ebp - 0x11e0]
mov edx, dword [edx + 0x30]
add ebx, 0x114
push 0
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
push 0
push 0
push 0
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0x11e0]
mov eax, dword [ebx]
mov edx, dword [ebp - 0x29f0]
mov eax, dword [eax + 0x3c]
push ecx
push edx
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
push 0
push 0
push 0
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0x29f0]
xor eax, eax
push ecx
mov dword [0x1012b94c], eax
mov dword [0x1012b950], eax
call fcn.1008e660
add esp, 4
lea ecx, [ebp - 0x29f4]
mov byte [ebp - 4], 0
call fcn.100c7b50
push esi
call dword [ebp - 0x29f8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
call fcn.100c7b50
mov al, 1
jmp 0x10050c2f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10050c2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.100a6f5d
mov esp, ebp
pop ebp
ret 4