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

Disassembly:
push 0xffffffffffffffff
push 0x4b8e5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1828
call fcn.004a53e0
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.0046ba50
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
movzx eax, word [esi]
xor ebp, ebp
xor bl, bl
cmp ax, bp
je 0x49b559
test bl, bl
jne 0x49b542
movzx eax, ax
push eax
call fcn.0046a9f0
test al, al
jne 0x49b559
cmp word [esi], 0x22
jne 0x49b54d
test bl, bl
sete bl
movzx eax, word [esi + 2]
add esi, 2
cmp ax, bp
jne 0x49b531
movzx ecx, word [esi]
push ecx
call fcn.0046a9f0
test al, al
je 0x49b577
movzx edx, word [esi + 2]
add esi, 2
push edx
call fcn.0046a9f0
test al, al
jne 0x49b566
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.0046a390
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 0x4bade8
mov dword [0x4e9b8c], eax
call fcn.0045b940
test al, al
lea eax, [esp + 0x838]
sete bl
push eax
mov byte [esp + 0x1b], bl
call fcn.004523d0
lea ecx, [esp + 0x838]
push ecx
call fcn.00451670
xor eax, eax
jmp 0x49b600
movzx ecx, word [esp + eax + 0x838]
mov word [eax + 0x4e9b90], cx
add eax, 2
cmp cx, bp
jne 0x49b600
mov eax, 0x4e9b90
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x49b620
sub eax, edx
sar eax, 1
push 0x1000000
lea edx, [eax*2 + 0x4e9b90]
push edx
push str.rar.log
call fcn.00473290
push ebp
push edi
mov ecx, 0x4d76e0
call fcn.004613a0
push str.winrar.lng
mov ecx, 0x4d76c0
call fcn.00461050
push edi
call fcn.0049a650
test eax, eax
je 0x49bcc8
lea ecx, [esp + 0x1c]
call fcn.0048b720
mov dword [esp + 0x1844], ebp
mov ecx, 0x4f0dd0
mov dword [0x4d76ac], edi
call fcn.004162c0
call fcn.004832c0
call fcn.00481d70
call fcn.00497110
call fcn.004972e0
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 0x49bcb4
push eax
mov ecx, 0x4d76c0
call fcn.00460130
push ebp
call fcn.00496a90
call fcn.00496fb0
test bl, bl
je 0x49b72c
push 1
push ebp
call fcn.004206a0
mov byte [esp + 0x16], 1
test al, al
je 0x49b731
mov byte [esp + 0x16], 0
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00496960
movzx ecx, word [esp + 0x24]
push ecx
call fcn.004a6355
push 0xd0
push ebp
push 0x4f2310
mov edi, eax
call fcn.004a5410
add esp, 0x10
push esi
call fcn.00496890
mov bl, al
cmp edi, ebp
je 0x49b7ab
test bl, bl
je 0x49b7ab
push edi
push str.AFUMD
call fcn.004a5b50
add esp, 8
test eax, eax
jne 0x49b78a
cmp edi, 0x43
jne 0x49b791
cmp word [esp + 0x26], bp
jne 0x49b791
call fcn.00481ab0
jmp 0x49b7b0
push edi
push 0x4c1948
call fcn.004a5b50
add esp, 8
test eax, eax
je 0x49b7ab
push ebp
call fcn.00488fa0
jmp 0x49b7b0
call fcn.00481960
push 0x4f2cd0
mov ecx, 0x4eb108
mov byte [0x4f802d], bl
call fcn.00414cb0
xor eax, eax
jmp 0x49b7d0
movzx ecx, word [eax + 0x4f907c]
mov word [eax + 0x4ea440], cx
add eax, 2
cmp cx, bp
jne 0x49b7d0
xor edx, edx
push esi
mov word [0x4f907c], dx
mov dword [0x4ea3a4], ebp
call fcn.0049ad10
cmp byte [0x4f8026], 0
jne 0x49bcb4
mov eax, dword [0x4eacd4]
push eax
call fcn.00496b40
cmp byte [0x4f61e9], 0
je 0x49b847
push 0x4f61e9
call fcn.00451b50
push 0x1000000
push 0x4e9b90
cmp eax, 0x4f61e9
jne 0x49b83d
call fcn.00451bd0
push eax
push 0x4f61e9
call fcn.00473290
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 0x49b9f7
cmp byte [0x4f804b], 0
jne 0x49bc40
xor bl, bl
cmp word [0x4f907c], 0
je 0x49bba1
push 0x4f907c
push 0
call fcn.00431800
cmp eax, 0xffffffff
je 0x49b8a0
test al, 0x10
je 0x49b8a0
mov bl, 1
cmp word [0x4f907c], 0
je 0x49bb8c
test bl, bl
jne 0x49bb90
push 0
push str.ReuseWindow
push 0x4bade8
call fcn.0045ba60
test eax, eax
je 0x49b9c0
cmp dword [esp + 0x18], 0
je 0x49b9c0
push 0x400
lea edx, [esp + 0x3c]
push edx
call fcn.00484c80
lea eax, [esp + 0x38]
push eax
call fcn.00451670
lea eax, [esp + 0x38]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x49b900
mov ecx, dword [str.Rar_]
mov edx, dword [0x4c1940]
mov dword [eax], ecx
mov cx, word [0x4c1944]
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 0x49b930
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3c]
push edx
push 0x4f907c
call fcn.004736b0
test eax, eax
je 0x49b9c0
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.00451890
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 0x49bb69
push 0x4f907c
mov ecx, 0x4f04a8
call fcn.00444c60
test al, al
je 0x49bb69
cmp byte [0x4e9b89], 0
jne 0x49b9f7
cmp dword [0x4ea430], 0
je 0x49bb57
mov ecx, 0x4f04a8
call fcn.00443990
mov esi, dword [esp + 0x18]
push esi
push 0x10000
push 0x493fa0
call fcn.004a6108
mov edx, dword [0x4eacd4]
add esp, 0xc
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x49ba2d
test esi, esi
setne al
movzx ecx, al
push ecx
call fcn.00496d50
mov edx, dword [0x4eacd4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esp + 0x16], 0
je 0x49ba6b
cmp byte [esp + 0x17], 0
je 0x49ba6b
push str.Setup
call fcn.0045b940
test al, al
jne 0x49ba6b
push 0x4bc548
call fcn.0043cb30
test al, al
jne 0x49ba6b
push 6
call fcn.00420490
push 0
push str.ExportedSettings
push 0x4bad38
call fcn.0045ba60
test eax, eax
je 0x49ba85
call fcn.004203a0
push 0
push str.WizardMode
push 0x4bade8
call fcn.0045ba60
test eax, eax
je 0x49bac0
mov eax, dword [0x4eacd4]
push eax
call fcn.0049f8f0
test al, al
je 0x49bac0
cmp dword [0x4ea430], 0
jne 0x49bac0
mov ecx, dword [0x4eacd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
nop
push 0
push 0
call fcn.0049a780
test al, al
jne 0x49bac0
mov ecx, 0x4f04a4
call fcn.0049be90
call fcn.0048cdb0
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 0x49bb00
cmp dword [0x4e9b80], 0
jle 0x49bb16
push 0x64
call edi
dec esi
cmp esi, 0xc8
jl 0x49bb00
mov eax, dword [0x4ea43c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4ea3a0], 0
je 0x49bc97
mov dword [0x4ea3a0], 0xffffffff
xor esi, esi
cmp dword [0x4ea3a0], 0
je 0x49bcb4
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x49bb3b
jmp 0x49bcb4
mov ecx, dword [0x4eacd4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x49b9f7
call fcn.0048cf40
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b790
mov eax, 1
jmp 0x49bcca
test bl, bl
je 0x49bba1
push 0x4f907c
call fcn.00496e00
push 0x4f907c
jmp 0x49bc20
push 1
push str.RestoreFolder
push 0x4bade8
call fcn.0045ba60
push 0x400
push 0x4bad38
test eax, eax
je 0x49bbdb
lea edx, [esp + 0x40]
push edx
push str.LastFolder
push 0x4bade8
call fcn.0045ba30
lea eax, [esp + 0x38]
push eax
jmp 0x49bc20
lea ecx, [esp + 0x1040]
push ecx
push str.StartFolder
push 0x4baa0c
call fcn.0045ba30
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 0x49bc25
lea edx, [esp + 0x38]
push edx
call fcn.00484d90
push 0
mov ecx, 0x4f04a8
call fcn.004430b0
mov ecx, 0x4f0498
call fcn.004073d0
jmp 0x49b9f7
push 0x4f2310
call fcn.0049b120
call fcn.0048cf40
cmp dword [0x4ea3a4], 1
jne 0x49b9f7
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.00493300
mov esi, dword [0x4d76b4]
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b790
mov eax, esi
jmp 0x49bcca
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.00493300
mov dword [esp + 0x1844], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0048b790
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.004a4bb3
add esp, 0x1834
ret 0x10