Function at 0x49a6a0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4b706b
mov eax, dword fs:[0]
push eax
mov eax, 0x1828
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x1824], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca3b0]
xor eax, esp
push eax
lea eax, [esp + 0x183c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x184c]
call fcn.0046b0d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
xor ebp, ebp
xor bl, bl
cmp ax, bp
je 0x49a728
nop
test bl, bl
jne 0x49a711
movzx eax, ax
push eax
call fcn.0046a030
test al, al
jne 0x49a728
cmp word [esi], 0x22
jne 0x49a71c
test bl, bl
sete bl
movzx eax, word [esi + 2]
add esi, 2
cmp ax, bp
jne 0x49a700
movzx ecx, word [esi]
push ecx
call fcn.0046a030
test al, al
je 0x49a746
movzx edx, word [esi + 2]
add esi, 2
push edx
call fcn.0046a030
test al, al
jne 0x49a735
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00469a00
mov ecx, 0x4f0ca0
call fcn.0041e3b0
mov byte [0x4e8c4d], 0
mov dword [0x4e7b80], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push ebp
push 1
push ebp
mov dword [0x4e8cd0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.WMUser_DisplayError
mov dword [0x4e843c], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.General
mov dword [0x4e7b8c], eax
call fcn.0045b110
test al, al
lea eax, [esp + 0x838]
sete bl
push eax
mov byte [esp + 0x1b], bl
call fcn.00451da0
lea ecx, [esp + 0x838]
push ecx
call fcn.00451050
xor eax, eax
jmp 0x49a7d0
movzx ecx, word [esp + eax + 0x838]
mov word [eax + 0x4e7b90], cx
add eax, 2
cmp cx, bp
jne 0x49a7d0
mov eax, 0x4e7b90
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x49a7f0
sub eax, edx
sar eax, 1
push 0x1000000
lea edx, [eax*2 + 0x4e7b90]
push edx
push str.rar.log
call fcn.00472850
push ebp
push edi
mov ecx, 0x4d56e0
call fcn.00460af0
push str.winrar.lng
mov ecx, 0x4d56c0
call fcn.004607a0
push edi
call fcn.00499830
test eax, eax
je 0x49ae88
lea ecx, [esp + 0x1c]
call fcn.0048a960
mov dword [esp + 0x1844], ebp
mov ecx, 0x4eeda0
mov dword [0x4d56ac], edi
call fcn.00416160
call fcn.004826e0
call fcn.004811f0
call fcn.00496350
call fcn.00496520
push str.WinRAR_Busy
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebp
push str.WinRarWindow
mov dword [0x4e8ccc], eax
call dword [sym.imp.USER32.dll_FindWindowW]
push ebp
push edi
push ebp
push ebp
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x6cf0000
push 0x4ba758
push str.WinRarWindow
push 0x10
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4e8cd4], eax
cmp eax, ebp
je 0x49ae74
push eax
mov ecx, 0x4d56c0
call fcn.0045f880
push ebp
call fcn.00495ce0
call fcn.004961f0
test bl, bl
je 0x49a8fc
push 1
push ebp
call fcn.00420490
mov byte [esp + 0x16], 1
test al, al
je 0x49a901
mov byte [esp + 0x16], 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00495bc0
movzx ecx, word [esp + 0x24]
push ecx
call fcn.004a5405
push 0xd0
push ebp
push 0x4f02e0
mov edi, eax
call fcn.004a44c0
add esp, 0x10
push esi
call fcn.00495af0
cmp edi, ebp
je 0x49a96d
test al, al
je 0x49a96d
push edi
push str.AFUMDC
call fcn.004a4c00
add esp, 8
test eax, eax
je 0x49a953
call fcn.00480f20
jmp 0x49a972
push edi
push 0x4bf8c0
call fcn.004a4c00
add esp, 8
test eax, eax
je 0x49a96d
push ebp
call fcn.00488230
jmp 0x49a972
call fcn.00480dd0
push 0x4f0ca0
mov ecx, 0x4e9108
call fcn.00414b60
xor eax, eax
jmp 0x49a990
movzx ecx, word [eax + 0x4f701c]
mov word [eax + 0x4e8440], cx
add eax, 2
cmp cx, bp
jne 0x49a990
xor edx, edx
push esi
mov word [0x4f701c], dx
mov dword [0x4f45e8], ebp
mov dword [0x4e83a4], ebp
call fcn.00499ee0
cmp byte [0x4f5fc6], 0
jne 0x49ae74
mov eax, dword [0x4e8cd4]
push eax
call fcn.00495d90
cmp byte [0x4f41b9], 0
je 0x49aa0d
push 0x4f41b9
call fcn.00451530
push 0x1000000
push 0x4e7b90
cmp eax, 0x4f41b9
jne 0x49aa03
call fcn.004515b0
push eax
push 0x4f41b9
call fcn.00472850
mov ecx, dword [0x4e8cd4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x403
push ecx
call ebp
cmp dword [0x4e8cd4], 0
je 0x49abb7
cmp byte [0x4f5feb], 0
jne 0x49ae00
xor bl, bl
cmp word [0x4f701c], 0
je 0x49ad61
push 0x4f701c
push 0
call fcn.004315e0
cmp eax, 0xffffffff
je 0x49aa66
test al, 0x10
je 0x49aa66
mov bl, 1
cmp word [0x4f701c], 0
je 0x49ad4c
test bl, bl
jne 0x49ad50
push 0
push str.ReuseWindow
push str.General
call fcn.0045b230
test eax, eax
je 0x49ab80
cmp dword [esp + 0x18], 0
je 0x49ab80
push 0x400
lea edx, [esp + 0x3c]
push edx
call fcn.00484000
lea eax, [esp + 0x38]
push eax
call fcn.00451050
lea eax, [esp + 0x38]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49aac0
mov ecx, dword [str.Rar_]
mov edx, dword [0x4bf8b8]
mov dword [eax], ecx
mov cx, word [0x4bf8bc]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0x38]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49aaf0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3c]
push edx
push 0x4f701c
call fcn.00472c70
test eax, eax
je 0x49ab80
push str.RarArchiveWideName
push 0x800
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x800
push 0
push 0
mov esi, eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
push edi
push 0x4f701c
call fcn.00451270
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
push 0x7ae964f1
push 0xd489ac5e
push 0x401
push eax
call ebp
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x49ad29
push 0x4f701c
mov ecx, 0x4ee478
call fcn.004447a0
test al, al
je 0x49ad29
cmp byte [0x4e7b89], 0
jne 0x49abb7
cmp dword [0x4e8430], 0
je 0x49ad17
mov ecx, 0x4ee478
call fcn.004434d0
mov esi, dword [esp + 0x18]
push esi
push 0x10000
push 0x4931a0
call fcn.004a51b8
mov edx, dword [0x4e8cd4]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x49abed
test esi, esi
setne al
movzx ecx, al
push ecx
call fcn.00495fa0
mov edx, dword [0x4e8cd4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esp + 0x16], 0
je 0x49ac2b
cmp byte [esp + 0x17], 0
je 0x49ac2b
push str.Setup
call fcn.0045b110
test al, al
jne 0x49ac2b
push 0x4ba530
call fcn.0043c640
test al, al
jne 0x49ac2b
push 6
call fcn.00420280
push 0
push str.ExportedSettings
push 0x4b8d34
call fcn.0045b230
test eax, eax
je 0x49ac45
call fcn.00420190
push 0
push str.WizardMode
push str.General
call fcn.0045b230
test eax, eax
je 0x49ac80
mov eax, dword [0x4e8cd4]
push eax
call fcn.0049ea50
test al, al
je 0x49ac80
cmp dword [0x4e8430], 0
jne 0x49ac80
mov ecx, dword [0x4e8cd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
nop
push 0
push 0
call fcn.00499960
test al, al
jne 0x49ac80
mov ecx, 0x4ee474
call fcn.0049b050
call fcn.0048bfc0
mov edx, dword [0x4e843c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x4e8c4d], 1
xor esi, esi
jmp 0x49acc0
cmp dword [0x4e7b80], 0
jle 0x49acd6
push 0x64
call edi
dec esi
cmp esi, 0xc8
jl 0x49acc0
mov eax, dword [0x4e843c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4e83a0], 0
je 0x49ae57
mov dword [0x4e83a0], 0xffffffff
xor esi, esi
cmp dword [0x4e83a0], 0
je 0x49ae74
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x49acfb
jmp 0x49ae74
mov ecx, dword [0x4e8cd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x49abb7
call fcn.0048c150
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048a9d0
mov eax, 1
jmp 0x49ae8a
test bl, bl
je 0x49ad61
push 0x4f701c
call fcn.00496050
push 0x4f701c
jmp 0x49ade0
push 1
push str.RestoreFolder
push str.General
call fcn.0045b230
push 0x400
push 0x4b8d34
test eax, eax
je 0x49ad9b
lea edx, [esp + 0x40]
push edx
push str.LastFolder
push str.General
call fcn.0045b200
lea eax, [esp + 0x38]
push eax
jmp 0x49ade0
lea ecx, [esp + 0x1040]
push ecx
push str.StartFolder
push str.Paths
call fcn.0045b200
push 0x400
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov word [esp + 0x836], cx
cmp word [esp + 0x38], cx
je 0x49ade5
lea edx, [esp + 0x38]
push edx
call fcn.00484110
push 0
mov ecx, 0x4ee478
call fcn.00442bf0
mov ecx, 0x4ee468
call fcn.00407390
jmp 0x49abb7
push 0x4f02e0
call fcn.0049a2f0
call fcn.0048c150
cmp dword [0x4e83a4], 1
jne 0x49abb7
push 0
push str.WinRarWindow
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
sete al
movzx ecx, al
push ecx
push 1
call fcn.004924f0
mov esi, dword [0x4d56b4]
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048a9d0
mov eax, esi
jmp 0x49ae8a
push 0
push str.WinRarWindow
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
sete cl
movzx edx, cl
push edx
push 1
call fcn.004924f0
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048a9d0
xor eax, eax
mov ecx, dword [esp + 0x183c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1824]
xor ecx, esp
call fcn.004a3c63
add esp, 0x1834
ret 0x10