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

Disassembly:
push 0xffffffffffffffff
push 0x4b8b8b
mov eax, dword fs:[0]
push eax
mov eax, 0x1828
call fcn.004a5100
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]
call fcn.0046b890
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
xor ebp, ebp
xor bl, bl
cmp ax, bp
je 0x49b2d8
nop
test bl, bl
jne 0x49b2c1
movzx eax, ax
push eax
call fcn.0046a830
test al, al
jne 0x49b2d8
cmp word [esi], 0x22
jne 0x49b2cc
test bl, bl
sete bl
movzx eax, word [esi + 2]
add esi, 2
cmp ax, bp
jne 0x49b2b0
movzx ecx, word [esi]
push ecx
call fcn.0046a830
test al, al
je 0x49b2f6
movzx edx, word [esi + 2]
add esi, 2
push edx
call fcn.0046a830
test al, al
jne 0x49b2e5
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0046a1d0
mov ecx, 0x4f2ca0
call fcn.0041e5d0
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.0045b820
test al, al
lea eax, [esp + 0x838]
sete bl
push eax
mov byte [esp + 0x1b], bl
call fcn.00452430
lea ecx, [esp + 0x838]
push ecx
call fcn.004516d0
xor eax, eax
jmp 0x49b380
movzx ecx, word [esp + eax + 0x838]
mov word [eax + 0x4e9b90], cx
add eax, 2
cmp cx, bp
jne 0x49b380
mov eax, 0x4e9b90
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x49b3a0
sub eax, edx
sar eax, 1
push 0x1000000
lea edx, [eax*2 + 0x4e9b90]
push edx
push str.rar.log
call fcn.00473050
push ebp
push edi
mov ecx, 0x4d76e0
call fcn.00461280
push str.winrar.lng
mov ecx, 0x4d76c0
call fcn.00460f30
push edi
call fcn.0049a3e0
test eax, eax
je 0x49ba48
lea ecx, [esp + 0x1c]
call fcn.0048b480
mov dword [esp + 0x1844], ebp
mov ecx, 0x4f0da0
mov dword [0x4d76ac], edi
call fcn.00416300
call fcn.00483020
call fcn.00481ad0
call fcn.00496ea0
call fcn.00497070
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 0x49ba34
push eax
mov ecx, 0x4d76c0
call fcn.00460010
push ebp
call fcn.00496830
call fcn.00496d40
test bl, bl
je 0x49b4ac
push 1
push ebp
call fcn.00420690
mov byte [esp + 0x16], 1
test al, al
je 0x49b4b1
mov byte [esp + 0x16], 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00496700
movzx ecx, word [esp + 0x24]
push ecx
call fcn.004a6075
push 0xd0
push ebp
push 0x4f22e0
mov edi, eax
call fcn.004a5130
add esp, 0x10
push esi
call fcn.00496630
mov bl, al
cmp edi, ebp
je 0x49b52b
test bl, bl
je 0x49b52b
push edi
push str.AFUMD
call fcn.004a5870
add esp, 8
test eax, eax
jne 0x49b50a
cmp edi, 0x43
jne 0x49b511
cmp word [esp + 0x26], bp
jne 0x49b511
call fcn.00481810
jmp 0x49b530
push edi
push 0x4c1920
call fcn.004a5870
add esp, 8
test eax, eax
je 0x49b52b
push ebp
call fcn.00488d00
jmp 0x49b530
call fcn.004816c0
push 0x4f2ca0
mov ecx, 0x4eb108
mov byte [0x4f7fcd], bl
call fcn.00414cf0
xor eax, eax
jmp 0x49b550
movzx ecx, word [eax + 0x4f901c]
mov word [eax + 0x4ea440], cx
add eax, 2
cmp cx, bp
jne 0x49b550
xor edx, edx
push esi
mov word [0x4f901c], dx
mov dword [0x4f65e8], ebp
mov dword [0x4ea3a4], ebp
call fcn.0049aa90
cmp byte [0x4f7fc6], 0
jne 0x49ba34
mov eax, dword [0x4eacd4]
push eax
call fcn.004968e0
cmp byte [0x4f61b9], 0
je 0x49b5cd
push 0x4f61b9
call fcn.00451bb0
push 0x1000000
push 0x4e9b90
cmp eax, 0x4f61b9
jne 0x49b5c3
call fcn.00451c30
push eax
push 0x4f61b9
call fcn.00473050
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 0x49b777
cmp byte [0x4f7feb], 0
jne 0x49b9c0
xor bl, bl
cmp word [0x4f901c], 0
je 0x49b921
push 0x4f901c
push 0
call fcn.00431850
cmp eax, 0xffffffff
je 0x49b626
test al, 0x10
je 0x49b626
mov bl, 1
cmp word [0x4f901c], 0
je 0x49b90c
test bl, bl
jne 0x49b910
push 0
push str.ReuseWindow
push str.General
call fcn.0045b940
test eax, eax
je 0x49b740
cmp dword [esp + 0x18], 0
je 0x49b740
push 0x400
lea edx, [esp + 0x3c]
push edx
call fcn.004849e0
lea eax, [esp + 0x38]
push eax
call fcn.004516d0
lea eax, [esp + 0x38]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49b680
mov ecx, dword [str.Rar_]
mov edx, dword [0x4c1918]
mov dword [eax], ecx
mov cx, word [0x4c191c]
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 0x49b6b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3c]
push edx
push 0x4f901c
call fcn.00473470
test eax, eax
je 0x49b740
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 0x4f901c
call fcn.004518f0
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 0x49b8e9
push 0x4f901c
mov ecx, 0x4f0478
call fcn.00444c80
test al, al
je 0x49b8e9
cmp byte [0x4e9b89], 0
jne 0x49b777
cmp dword [0x4ea430], 0
je 0x49b8d7
mov ecx, 0x4f0478
call fcn.004439b0
mov esi, dword [esp + 0x18]
push esi
push 0x10000
push 0x493cf0
call fcn.004a5e28
mov edx, dword [0x4eacd4]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x49b7ad
test esi, esi
setne al
movzx ecx, al
push ecx
call fcn.00496af0
mov edx, dword [0x4eacd4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esp + 0x16], 0
je 0x49b7eb
cmp byte [esp + 0x17], 0
je 0x49b7eb
push str.Setup
call fcn.0045b820
test al, al
jne 0x49b7eb
push 0x4bc548
call fcn.0043cb80
test al, al
jne 0x49b7eb
push 6
call fcn.00420480
push 0
push str.ExportedSettings
push 0x4bad38
call fcn.0045b940
test eax, eax
je 0x49b805
call fcn.00420390
push 0
push str.WizardMode
push str.General
call fcn.0045b940
test eax, eax
je 0x49b840
mov eax, dword [0x4eacd4]
push eax
call fcn.0049f5e0
test al, al
je 0x49b840
cmp dword [0x4ea430], 0
jne 0x49b840
mov ecx, dword [0x4eacd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
nop
push 0
push 0
call fcn.0049a510
test al, al
jne 0x49b840
mov ecx, 0x4f0474
call fcn.0049bc10
call fcn.0048cb10
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 0x49b880
cmp dword [0x4e9b80], 0
jle 0x49b896
push 0x64
call edi
dec esi
cmp esi, 0xc8
jl 0x49b880
mov eax, dword [0x4ea43c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ea3a0], 0
je 0x49ba17
mov dword [0x4ea3a0], 0xffffffff
xor esi, esi
cmp dword [0x4ea3a0], 0
je 0x49ba34
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x49b8bb
jmp 0x49ba34
mov ecx, dword [0x4eacd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x49b777
call fcn.0048cca0
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b4f0
mov eax, 1
jmp 0x49ba4a
test bl, bl
je 0x49b921
push 0x4f901c
call fcn.00496ba0
push 0x4f901c
jmp 0x49b9a0
push 1
push str.RestoreFolder
push str.General
call fcn.0045b940
push 0x400
push 0x4bad38
test eax, eax
je 0x49b95b
lea edx, [esp + 0x40]
push edx
push str.LastFolder
push str.General
call fcn.0045b910
lea eax, [esp + 0x38]
push eax
jmp 0x49b9a0
lea ecx, [esp + 0x1040]
push ecx
push str.StartFolder
push str.Paths
call fcn.0045b910
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 0x49b9a5
lea edx, [esp + 0x38]
push edx
call fcn.00484af0
push 0
mov ecx, 0x4f0478
call fcn.004430d0
mov ecx, 0x4f0468
call fcn.004073e0
jmp 0x49b777
push 0x4f22e0
call fcn.0049aea0
call fcn.0048cca0
cmp dword [0x4ea3a4], 1
jne 0x49b777
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.00493050
mov esi, dword [0x4d76b4]
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b4f0
mov eax, esi
jmp 0x49ba4a
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.00493050
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b4f0
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.004a48d3
add esp, 0x1834
ret 0x10