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

Disassembly:
push 0xffffffffffffffff
push 0x4b8dfb
mov eax, dword fs:[0]
push eax
mov eax, 0x1828
call fcn.004a5370
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x1824], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc3b0]
xor eax, esp
push eax
lea eax, [esp + 0x183c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x184c]
push 1
call fcn.0046ba60
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
xor ebp, ebp
xor bl, bl
cmp ax, bp
je 0x49b4f9
test bl, bl
jne 0x49b4e2
movzx eax, ax
push eax
call fcn.0046aa00
test al, al
jne 0x49b4f9
cmp word [esi], 0x22
jne 0x49b4ed
test bl, bl
sete bl
movzx eax, word [esi + 2]
add esi, 2
cmp ax, bp
jne 0x49b4d1
movzx ecx, word [esi]
push ecx
call fcn.0046aa00
test al, al
je 0x49b517
movzx edx, word [esi + 2]
add esi, 2
push edx
call fcn.0046aa00
test al, al
jne 0x49b506
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0046a3a0
mov ecx, 0x4f2cd0
call fcn.0041e5e0
mov byte [0x4eac4d], 0
mov dword [0x4e9b80], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push ebp
push 1
push ebp
mov dword [0x4eacd0], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.WMUser_DisplayError
mov dword [0x4ea43c], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.General
mov dword [0x4e9b8c], eax
call fcn.0045b970
test al, al
lea eax, [esp + 0x838]
sete bl
push eax
mov byte [esp + 0x1b], bl
call fcn.00452420
lea ecx, [esp + 0x838]
push ecx
call fcn.004516c0
xor eax, eax
jmp 0x49b5a0
movzx ecx, word [esp + eax + 0x838]
mov word [eax + 0x4e9b90], cx
add eax, 2
cmp cx, bp
jne 0x49b5a0
mov eax, 0x4e9b90
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x49b5c0
sub eax, edx
sar eax, 1
push 0x1000000
lea edx, [eax*2 + 0x4e9b90]
push edx
push str.rar.log
call fcn.00473230
push ebp
push edi
mov ecx, 0x4d76e0
call fcn.004613d0
push str.winrar.lng
mov ecx, 0x4d76c0
call fcn.00461080
push edi
call fcn.0049a600
test eax, eax
je 0x49bc68
lea ecx, [esp + 0x1c]
call fcn.0048b6d0
mov dword [esp + 0x1844], ebp
mov ecx, 0x4f0dd0
mov dword [0x4d76ac], edi
call fcn.004162c0
call fcn.00483270
call fcn.00481d20
call fcn.004970c0
call fcn.00497290
push str.WinRAR_Busy
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebp
push str.WinRarWindow
mov dword [0x4eaccc], 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 0x4bc770
push str.WinRarWindow
push 0x10
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4eacd4], eax
cmp eax, ebp
je 0x49bc54
push eax
mov ecx, 0x4d76c0
call fcn.00460160
push ebp
call fcn.00496a50
call fcn.00496f60
test bl, bl
je 0x49b6cc
push 1
push ebp
call fcn.004206a0
mov byte [esp + 0x16], 1
test al, al
je 0x49b6d1
mov byte [esp + 0x16], 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00496920
movzx ecx, word [esp + 0x24]
push ecx
call fcn.004a62e5
push 0xd0
push ebp
push 0x4f2310
mov edi, eax
call fcn.004a53a0
add esp, 0x10
push esi
call fcn.00496850
mov bl, al
cmp edi, ebp
je 0x49b74b
test bl, bl
je 0x49b74b
push edi
push str.AFUMD
call fcn.004a5ae0
add esp, 8
test eax, eax
jne 0x49b72a
cmp edi, 0x43
jne 0x49b731
cmp word [esp + 0x26], bp
jne 0x49b731
call fcn.00481a60
jmp 0x49b750
push edi
push 0x4c1938
call fcn.004a5ae0
add esp, 8
test eax, eax
je 0x49b74b
push ebp
call fcn.00488f50
jmp 0x49b750
call fcn.00481910
push 0x4f2cd0
mov ecx, 0x4eb108
mov byte [0x4f802d], bl
call fcn.00414cb0
xor eax, eax
jmp 0x49b770
movzx ecx, word [eax + 0x4f907c]
mov word [eax + 0x4ea440], cx
add eax, 2
cmp cx, bp
jne 0x49b770
xor edx, edx
push esi
mov word [0x4f907c], dx
mov dword [0x4ea3a4], ebp
call fcn.0049acb0
cmp byte [0x4f8026], 0
jne 0x49bc54
mov eax, dword [0x4eacd4]
push eax
call fcn.00496b00
cmp byte [0x4f61e9], 0
je 0x49b7e7
push 0x4f61e9
call fcn.00451ba0
push 0x1000000
push 0x4e9b90
cmp eax, 0x4f61e9
jne 0x49b7dd
call fcn.00451c20
push eax
push 0x4f61e9
call fcn.00473230
mov ecx, dword [0x4eacd4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x403
push ecx
call ebp
cmp dword [0x4eacd4], 0
je 0x49b997
cmp byte [0x4f804b], 0
jne 0x49bbe0
xor bl, bl
cmp word [0x4f907c], 0
je 0x49bb41
push 0x4f907c
push 0
call fcn.00431860
cmp eax, 0xffffffff
je 0x49b840
test al, 0x10
je 0x49b840
mov bl, 1
cmp word [0x4f907c], 0
je 0x49bb2c
test bl, bl
jne 0x49bb30
push 0
push str.ReuseWindow
push str.General
call fcn.0045ba90
test eax, eax
je 0x49b960
cmp dword [esp + 0x18], 0
je 0x49b960
push 0x400
lea edx, [esp + 0x3c]
push edx
call fcn.00484c20
lea eax, [esp + 0x38]
push eax
call fcn.004516c0
lea eax, [esp + 0x38]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49b8a0
mov ecx, dword [str.Rar_]
mov edx, dword [0x4c1930]
mov dword [eax], ecx
mov cx, word [0x4c1934]
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 0x49b8d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3c]
push edx
push 0x4f907c
call fcn.00473650
test eax, eax
je 0x49b960
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 0x4f907c
call fcn.004518e0
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 0x49bb09
push 0x4f907c
mov ecx, 0x4f04a8
call fcn.00444ce0
test al, al
je 0x49bb09
cmp byte [0x4e9b89], 0
jne 0x49b997
cmp dword [0x4ea430], 0
je 0x49baf7
mov ecx, 0x4f04a8
call fcn.00443a10
mov esi, dword [esp + 0x18]
push esi
push 0x10000
push 0x493f50
call fcn.004a6098
mov edx, dword [0x4eacd4]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x49b9cd
test esi, esi
setne al
movzx ecx, al
push ecx
call fcn.00496d10
mov edx, dword [0x4eacd4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esp + 0x16], 0
je 0x49ba0b
cmp byte [esp + 0x17], 0
je 0x49ba0b
push str.Setup
call fcn.0045b970
test al, al
jne 0x49ba0b
push 0x4bc548
call fcn.0043cbd0
test al, al
jne 0x49ba0b
push 6
call fcn.00420490
push 0
push str.ExportedSettings
push 0x4bad38
call fcn.0045ba90
test eax, eax
je 0x49ba25
call fcn.004203a0
push 0
push str.WizardMode
push str.General
call fcn.0045ba90
test eax, eax
je 0x49ba60
mov eax, dword [0x4eacd4]
push eax
call fcn.0049f880
test al, al
je 0x49ba60
cmp dword [0x4ea430], 0
jne 0x49ba60
mov ecx, dword [0x4eacd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
nop
push 0
push 0
call fcn.0049a730
test al, al
jne 0x49ba60
mov ecx, 0x4f04a4
call fcn.0049be30
call fcn.0048cd60
mov edx, dword [0x4ea43c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x4eac4d], 1
xor esi, esi
jmp 0x49baa0
cmp dword [0x4e9b80], 0
jle 0x49bab6
push 0x64
call edi
dec esi
cmp esi, 0xc8
jl 0x49baa0
mov eax, dword [0x4ea43c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ea3a0], 0
je 0x49bc37
mov dword [0x4ea3a0], 0xffffffff
xor esi, esi
cmp dword [0x4ea3a0], 0
je 0x49bc54
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x49badb
jmp 0x49bc54
mov ecx, dword [0x4eacd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x49b997
call fcn.0048cef0
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b740
mov eax, 1
jmp 0x49bc6a
test bl, bl
je 0x49bb41
push 0x4f907c
call fcn.00496dc0
push 0x4f907c
jmp 0x49bbc0
push 1
push str.RestoreFolder
push str.General
call fcn.0045ba90
push 0x400
push 0x4bad38
test eax, eax
je 0x49bb7b
lea edx, [esp + 0x40]
push edx
push str.LastFolder
push str.General
call fcn.0045ba60
lea eax, [esp + 0x38]
push eax
jmp 0x49bbc0
lea ecx, [esp + 0x1040]
push ecx
push str.StartFolder
push str.Paths
call fcn.0045ba60
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 0x49bbc5
lea edx, [esp + 0x38]
push edx
call fcn.00484d30
push 0
mov ecx, 0x4f04a8
call fcn.00443130
mov ecx, 0x4f0498
call fcn.00407390
jmp 0x49b997
push 0x4f2310
call fcn.0049b0c0
call fcn.0048cef0
cmp dword [0x4ea3a4], 1
jne 0x49b997
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.004932b0
mov esi, dword [0x4d76b4]
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b740
mov eax, esi
jmp 0x49bc6a
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.004932b0
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b740
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.004a4b43
add esp, 0x1834
ret 0x10