Function at 0x517b90
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x3044]
mov eax, 0x3044
call fcn.00530230
push 0xffffffffffffffff
push 0x554d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x3040], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x304c]
push 1
call fcn.004be5a0
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0x5a4ed8
call fcn.0047fee0
mov byte [0x594405], 0
mov dword [0x595420], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x595424], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x595428], eax
push str.WMUser_DisplayError
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x595450], eax
push 0x558ad0
call fcn.004cdb00
test al, al
sete bl
mov byte [ebp - 0x19], bl
push 1
push 0x800
lea eax, [ebp + 0x102c]
push eax
call fcn.004a2900
push 0x800
lea eax, [ebp + 0x102c]
push eax
call fcn.004a1860
push 0x800
lea eax, [ebp + 0x102c]
push eax
push 0x594410
call fcn.004bdae0
push 0x800
push str.rar.log
push 0x594410
call fcn.004bda80
push 0
push esi
mov ecx, 0x5d3760
call fcn.004b71e0
push str.winrar.lng
mov ecx, 0x5d37b8
call fcn.004b5c30
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 8], 0x515620
mov dword [ebp + 0x14], esi
push 0x65
push dword [0x5d3758]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp + 0x18], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], 0x10
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], str.WinRarWindow
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x5186af
mov dword [ebp + 8], 0x4de8a0
mov dword [ebp + 0x20], 6
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], str.RarTreeWindow
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x5186af
mov dword [ebp + 8], 0x4d1440
mov dword [ebp + 0x20], 0x10
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], str.RarReminder
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x5186af
mov dword [ebp + 8], 0x51c2f0
mov dword [ebp + 0x20], 6
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x10], 0x10
mov dword [ebp + 0x28], str.RarViewWindow
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x5186af
mov dword [ebp + 8], 0x508c90
mov dword [ebp + 0x20], 6
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x28], str.RarCmtWindow
lea eax, [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x5186af
lea ecx, [ebp - 0x24]
call fcn.005078d0
mov dword [ebp - 4], 0
mov dword [0x5d375c], esi
mov ecx, 0x5c3bd0
call fcn.0040a980
call fcn.004f81d0
call fcn.004f2a90
call fcn.00517810
push str.WinRAR_Busy
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x594400], eax
push 0
push str.WinRarWindow
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x18], eax
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x6cf0000
push 0x55c00c
push str.WinRarWindow
push 0x10
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x5933dc], eax
test eax, eax
je 0x5186a0
push eax
mov ecx, 0x5d37b8
call fcn.004b6930
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
cmp byte [0x6044d4], 0
jne 0x517eb3
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [0x6044dc], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [0x6044d8], eax
mov byte [0x6044d4], 1
push 1
push str.Priority
push 0x558ad0
call fcn.004cffa0
sub eax, 0
je 0x517ee3
sub eax, 1
jne 0x517ef5
push dword [0x6044dc]
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [0x6044d8]
jmp 0x517eee
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.005174f0
call fcn.00404cc0
test bl, bl
je 0x517f1d
call fcn.004d0b20
test al, al
jne 0x517f1d
push 1
push 0
call fcn.0040fd20
test al, al
mov byte [ebp - 0x11], 1
je 0x517f21
mov byte [ebp - 0x11], 0
lea eax, [ebp + 0x302c]
push eax
call fcn.0040ef50
movzx eax, word [ebp + 0x302c]
push eax
call fcn.004c1b20
movzx esi, ax
push 0x42c
push 0
push 0x595468
call fcn.00532770
add esp, 0xc
push 0
push 0
push 1
mov ecx, 0x5a4ed8
call fcn.00480570
call fcn.004165c0
test si, si
je 0x517fd1
mov al, byte [0x5a6eec]
test al, al
jne 0x517fd1
push esi
push str.AFUMD
call fcn.005317e5
add esp, 8
test eax, eax
jne 0x517fb8
cmp esi, 0x43
jne 0x517f94
cmp word [ebp + 0x302e], ax
je 0x517fb8
mov al, byte [0x5a6eec]
test al, al
jne 0x517fd1
push esi
push 0x56dc48
call fcn.005317e5
add esp, 8
test eax, eax
je 0x517fd1
push 0
call fcn.00507120
jmp 0x517fd8
call fcn.004fbe10
cmp esi, 0x44
je 0x517fc7
cmp esi, 0x43
jne 0x517fd8
xor eax, eax
mov word [0x5a5ee8], ax
jmp 0x517fd8
push 0
call fcn.004f8320
push 0
push 0
push 1
mov ecx, 0x5a4ed8
call fcn.00480570
push 0xd428
push 0x5a4ed8
push 0x5b4518
call fcn.00531d40
add esp, 0xc
mov al, byte [0x5b2300]
mov byte [0x5c1940], al
mov al, byte [0x5b2301]
mov byte [0x5c1941], al
mov eax, dword [0x5b2304]
mov dword [0x5c1944], eax
mov al, byte [0x5b2308]
mov byte [0x5c1948], al
mov al, byte [0x5b2309]
mov byte [0x5c1949], al
mov ecx, 0x408
mov esi, 0x5b230a
mov edi, 0x5c194a
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x400
mov esi, 0x5b332a
mov edi, 0x5c296a
rep movsd dword es:[edi], dword [esi]
push 0x5b432c
mov ecx, 0x5c396c
call fcn.0040d5f0
push 0x5b4388
mov ecx, 0x5c39c8
call fcn.0040d5f0
push 0x5b43e4
mov ecx, 0x5c3a24
call fcn.0040d5f0
push 0x5b4440
mov ecx, 0x5c3a80
call fcn.0040d5f0
push 0x5b449c
mov ecx, 0x5c3adc
call fcn.0040d5f0
mov ecx, 0x5c3b38
cmp ecx, 0x5b44f8
je 0x5180d0
push dword [ebp - 0x18]
push dword [0x5b44fc]
push dword [0x5b44f8]
call fcn.00404d10
mov al, byte [0x5b4504]
mov byte [0x5c3b44], al
mov ecx, 0x5c3b48
jmp 0x5180e7
mov al, byte [0x5b4504]
mov byte [0x5c3b44], al
mov ecx, 0x5c3b48
cmp ecx, 0x5b4508
je 0x5180fb
push dword [ebp - 0x18]
push dword [0x5b450c]
push dword [0x5b4508]
call fcn.0040d450
push 0x800
push 0x5b332a
push 0x5933e0
call fcn.004bdae0
xor eax, eax
mov word [0x5b332a], ax
push 0x800
lea eax, [ebp + 0x2c]
push eax
call fcn.004fe630
lea eax, [ebp + 0x2c]
push eax
mov ecx, 0x5c6810
call fcn.00462020
mov dword [0x5943f8], 0
mov byte [ebp - 4], 1
call fcn.0040ea90
mov dword [ebp - 4], 0
mov esi, dword [0x5933dc]
cmp dword [0x5943f8], 1
je 0x518189
push 0
push str.OnTop
push 0x558ad0
call fcn.004cffa0
push 3
push 0
push 0
push 0
push 0
xor ecx, ecx
test eax, eax
setne cl
add ecx, 0xfffffffe
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp word [0x5aaf04], 0
je 0x5181bf
push 0x5aaf04
call fcn.004a3770
push 0x800
push 0x5aaf04
push 0x594410
cmp eax, 0x5aaf04
jne 0x5181ba
call fcn.004a3880
jmp 0x5181bf
call fcn.004bdae0
push 0
push 0
push 0x8003
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [0x5b230a], 0
jne 0x518486
cmp byte [0x5abf88], 0
je 0x5181f9
push 6
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp word [0x5b332a], 0
je 0x5183c6
push 0x5b332a
call fcn.00491430
cmp eax, 0xffffffff
je 0x51821e
test al, 0x10
je 0x51821e
mov bl, 1
cmp word [0x5b332a], 0
je 0x51839a
test bl, bl
jne 0x51839e
push 0
push str.ReuseWindow
push 0x558ad0
call fcn.004cffa0
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x518339
test ebx, ebx
je 0x518339
push 0
push 0x800
lea eax, [ebp + 0x202c]
push eax
call fcn.004fd1a0
push 0x800
lea eax, [ebp + 0x202c]
push eax
call fcn.004a1860
push 0x800
push str.Rar_
lea eax, [ebp + 0x202c]
push eax
call fcn.004bda80
lea ecx, [ebp + 0x202c]
lea edx, [ecx + 2]
jmp 0x5182a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5182a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp + 0x202c]
push eax
push 0x5b332a
call fcn.004c1bf0
test eax, eax
je 0x518339
push str.RarArchiveWideName
push 0x1000
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x518339
push 0x1000
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push 0x800
push esi
push 0x5b332a
mov ecx, 0x5c6810
call fcn.0045dd10
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x7ae964f1
push 0xd489ac5e
push 0x8001
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x51837c
push 0x5b332a
mov ecx, 0x5c6810
call fcn.0045e550
test al, al
je 0x51837c
cmp byte [0x5943f4], 0
jne 0x5183e9
cmp dword [0x5943ec], 0
je 0x51836e
mov ecx, 0x5c6810
call fcn.00461830
jmp 0x5183e9
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x5183e9
call fcn.00504380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00507950
mov eax, 1
jmp 0x5186b1
test bl, bl
je 0x5183c6
push 0x800
push 0x5b332a
push 0x5b332a
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 1
push 0x5b332a
mov ecx, 0x5c6810
call fcn.0045b110
jmp 0x5183d0
mov ecx, 0x5c6810
call fcn.00461a20
push 0
mov ecx, 0x5c6810
call fcn.00460c30
mov ecx, 0x5c63d4
call fcn.00404450
mov ebx, dword [ebp - 0x18]
push ebx
push 0x10000
push 0x508a80
call fcn.00539c1c
add esp, 0xc
cmp byte [0x5b12f3], 0
jne 0x51851c
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x51851c
push 0x2c
push eax
lea eax, [ebp]
push eax
push str.Placement
push str.InterfaceMainWin
call fcn.004d0040
test eax, eax
je 0x5184fe
mov eax, dword [ebp + 8]
cmp eax, 2
jne 0x51844b
mov eax, 1
mov dword [ebp + 8], eax
test ebx, ebx
je 0x5184e5
cmp eax, 3
je 0x5184e5
push 0x256
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x1c]
push eax
push 0
push 0
push 0
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x51850c
push 0x595468
call fcn.0040f000
call fcn.00504380
cmp dword [0x5943f8], 1
jne 0x5183e6
push 0
push str.WinRarWindow
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
sete al
movzx eax, al
push eax
push 1
call fcn.00508850
mov ecx, 0x5d380c
call fcn.00496290
mov esi, dword [0x5d381c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00507950
mov eax, esi
jmp 0x5186b1
mov dword [ebp], 0x2c
lea eax, [ebp]
push eax
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
jmp 0x51850c
push 1
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5943ec]
test eax, eax
je 0x51851c
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [ebp - 0x11], 0
je 0x518557
cmp byte [ebp - 0x19], 0
je 0x518557
push 0x558a1c
call fcn.004cdb00
test al, al
jne 0x518557
push 0x558b94
call fcn.004576b0
test al, al
jne 0x518557
push 6
call fcn.00412820
push 0
push str.ExportedSettings
push 0x558718
call fcn.004cffa0
test eax, eax
je 0x518571
call fcn.0040fc60
cmp byte [0x5b12f3], 0
jne 0x518583
push 0
push 1
call fcn.004d1ad0
push 0
push str.WizardMode
push 0x558ad0
call fcn.004cffa0
test eax, eax
je 0x5185bc
push dword [0x5933dc]
call fcn.0051d280
test al, al
je 0x5185bc
cmp dword [0x5943ec], 0
jne 0x5185bc
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [0x5b12f3], 0
je 0x5185e0
call fcn.00504380
push 0
push 0
push 0x10
push dword [0x5933dc]
call dword [sym.imp.USER32.dll_PostMessageW]
lea esp, [esp]
push 0
push 0
call fcn.00516ff0
test al, al
jne 0x5185e0
push 1
push 0
push 0
call fcn.004fdc40
mov ecx, 0x595894
call fcn.00519120
call fcn.00508c70
mov byte [0x594405], 1
push dword [0x595428]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor esi, esi
lea esp, [esp]
cmp dword [0x595420], 0
jle 0x51863a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
cmp esi, 0xc8
jl 0x518620
push dword [0x595428]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5943fc], 0
je 0x518679
or eax, 0xffffffff
mov dword [0x5943fc], eax
xor esi, esi
lea esp, [esp]
test eax, eax
je 0x518696
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jge 0x518696
mov eax, dword [0x5943fc]
jmp 0x518660
push 0
push str.WinRarWindow
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
sete al
movzx eax, al
push eax
push 1
call fcn.00508850
mov ecx, 0x5d380c
call fcn.00496290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00507950
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3040]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x3044]
pop ebp
ret 0x10