Function at 0x4d9180
Capabilities:
Get graphical window text
Hide graphical window
Resume thread
Suspend thread

Disassembly:
mov eax, 0x1790
call fcn.00507730
mov eax, dword [0x5755c4]
xor eax, esp
mov dword [esp + 0x178c], eax
cmp word [0x5dde38], 0
mov eax, str.HELPExecArcCmd
push ebx
mov ebx, dword [esp + 0x17a4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x17a4]
je 0x4d91be
mov eax, 0x5dde38
mov ebp, dword [esp + 0x17ac]
mov esi, dword [esp + 0x17a8]
push 0
push eax
push dword [0x5de060]
push ebx
push ebp
push esi
push edi
call fcn.00410460
test al, al
jne case.0x4d96a3.3
cmp esi, 0x4e
ja 0x4d9664
je 0x4d9632
add esi, 0xfffffffe
cmp esi, 0x22
ja case.0x4d9204.3
movzx eax, byte [esi + 0x4da13c]
jmp dword [eax*4 + 0x4da120]
mov eax, dword [0x5de070]
mov dword [ebx + 0x18], eax
mov eax, dword [0x5de074]
mov dword [ebx + 0x1c], eax
xor eax, eax
jmp 0x4da104
push 0
mov eax, ebx
shr eax, 0x10
push eax
movzx eax, bx
push eax
push dword [0x5de078]
push edi
call fcn.00410220
mov byte [0x5de07c], al
xor eax, eax
jmp 0x4da104
test ebp, ebp
je case.0x4d9204.3
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je case.0x4d9204.3
push 0
push edi
call dword [sym.imp.USER32.dll_FlashWindow]
push 1
push edi
call dword [sym.imp.USER32.dll_FlashWindow]
xor eax, eax
jmp 0x4da104
push str.Done
push edi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
mov eax, dword [0x5da74c]
je 0x4d928d
cmp eax, 0xa
jne case.0x4d9204.3
test eax, eax
je 0x4d92a4
cmp eax, 1
je 0x4d92a4
cmp eax, 2
je 0x4d92a4
cmp eax, 0xa
jne case.0x4d9204.3
lea eax, [esp + 0x404]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
push edi
push 0
mov esi, eax
push esi
push 0
push dword [0x5dde1c]
push dword [0x5dde18]
push dword [0x5dde14]
push dword [0x5dde10]
call fcn.004daa30
cmp byte [0x5ddd51], 0
jne 0x4d92ea
cmp dword [0x5da74c], 0xa
jne 0x4d930d
push edi
push 1
push esi
push 1
push dword [0x5dde2c]
push dword [0x5dde28]
push dword [0x5dde24]
push dword [0x5dde20]
call fcn.004daa30
lea eax, [esp + 0x404]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
jmp 0x4da104
push str.Done
push edi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4d933f
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp case.0x4d96a3.3
cmp dword [0x5da74c], 0xd
je 0x4d938e
call fcn.00524816
sub eax, dword [0x5ddd98]
cmp eax, 0xea60
jl 0x4d938e
cmp byte [0x57dfb6], 0
jne case.0x4d96a3.3
push 0x24
push 0x312
call fcn.00497960
push eax
push 0x311
call fcn.00497960
push eax
push edi
call fcn.004d8380
cmp eax, 6
jne case.0x4d96a3.3
mov byte [0x57dfb6], 1
jmp case.0x4d96a3.3
push 0x64
push edi
call dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [0x57cf9c]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push 0
push 0
push 0
push 0
push 0
call fcn.004dba70
push dword [0x5de060]
lea eax, [esp + 0x448]
push str.InterfaceCmdWin_s
push 0x64
push eax
call fcn.00402930
add esp, 0x10
cmp byte [0x5de07c], 0
je 0x4d942e
lea eax, [esp + 0x404]
mov dword [esp + 0x404], 0x2c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x40c]
test eax, eax
je 0x4d943b
cmp eax, 6
je 0x4d943b
push 0x2c
lea eax, [esp + 0x408]
push eax
push str.Placement
lea eax, [esp + 0x450]
push eax
call fcn.004afd60
jmp 0x4d943b
lea eax, [esp + 0x444]
push eax
call fcn.004aeb50
push str.Done
push edi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4d9484
push str.Done
push edi
call dword [sym.imp.USER32.dll_RemovePropW]
xor eax, eax
lea esp, [esp]
cmp dword [eax*4 + 0x5ddd58], edi
je 0x4d9474
inc eax
cmp eax, 0x10
jb 0x4d9460
jmp 0x4d956a
mov dword [eax*4 + 0x5ddd58], 0
jmp 0x4d956a
push dword [0x5dde34]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de038]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de03c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de040]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de044]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de048]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de04c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de050]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de054]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de058]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x5de05c]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [0x57dfb6], 0
jne 0x4d9533
call fcn.00524816
sub eax, dword [0x5ddd98]
cmp eax, 0x2710
jle 0x4d9533
cmp dword [0x5da74c], 7
je 0x4d9533
push 1
call fcn.004a07c0
push 0
push edi
call fcn.004dbe60
mov al, byte [0x57dfb6]
mov dword [0x57dfa8], 0
mov dword [0x57cf80], 0
mov byte [0x57dfb7], al
mov byte [0x57dfb6], 0
mov dword [0x5ddd54], 0
mov eax, dword [0x57dfc0]
test eax, eax
je 0x4d957a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [0x57dfb8], 1
je 0x4d95a6
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x57cf9c]
jne 0x4d95a6
mov eax, dword [0x57dfac]
test eax, eax
jne 0x4d959f
mov eax, dword [0x5a93a8]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push dword [0x57cf9c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4d95f3
lea eax, [esp + 0x3d8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x3dc]
push eax
push dword [0x5a93a8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x3dc]
push eax
push dword [0x5a93a8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x5de068]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x5de06c]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.00451640
mov ecx, dword [0x5de078]
test ecx, ecx
je 0x4d9621
push 1
call fcn.004d8950
mov dword [0x5de078], 0
xor eax, eax
jmp 0x4da104
cmp dword [ebx + 8], 0xfffffdee
jne case.0x4d9204.3
cmp dword [ebx + 4], 0xa6
jne 0x4d9656
mov dword [ebx + 0xc], 0x5db750
xor eax, eax
jmp 0x4da104
mov dword [ebx + 0xc], 0x5da750
xor eax, eax
jmp 0x4da104
cmp esi, 0x113
ja 0x4d9ed5
je 0x4d9eb7
sub esi, 0x110
je 0x4d9aad
sub esi, 1
jne case.0x4d9204.3
movzx eax, bp
add eax, 0xfffffffe
cmp eax, 0xa8
ja case.0x4d96a3.3
movzx eax, byte [eax + 0x4da17c]
jmp dword [eax*4 + 0x4da160]
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4d96a3.3
push 0x3b8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00520500
add esp, 0xc
mov dword [esp + 0x10], 0x3b8
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x7b
mov dword [esp + 0x1c], 7
push 0x31
mov dword [esp + 0x24], 0x8007
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x32
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
mov ecx, 0x5ab4d8
push ebx
push esi
push str.RAR.ico
call fcn.004b8d10
mov dword [0x5da748], eax
test eax, eax
jne 0x4d973a
push eax
push ebx
push esi
push 1
push 0x65
push dword [0x5b76d8]
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [0x5da748], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004db700
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
je 0x4d97ac
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x57cf9c]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x591b30], 0
jne 0x4d9782
push 1
call fcn.004edd70
push 0
push 0
push 0
push 1
push dword [0x5dde2c]
push dword [0x5dde28]
push dword [0x5dde24]
push dword [0x5dde20]
call fcn.004daa30
jmp case.0x4d96a3.3
push dword [0x5da748]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [0x5da748], 0
jmp case.0x4d96a3.3
cmp byte [0x5de064], 0
je 0x4d97dc
mov byte [0x5de064], 0
jmp case.0x4d96a3.3
cmp byte [0x5dde31], 0
jne 0x4d9829
cmp dword [0x57dfa8], 0
je case.0x4d96a3.3
push 0xc8
push 0x5de080
push 0xa9
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x880
push 0x5de210
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [0x57dfc0]
test eax, eax
je 0x4d9829
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x5dde24]
test eax, eax
jl 0x4d9863
mov ecx, dword [0x5dde20]
jg 0x4d983e
test ecx, ecx
je 0x4d9863
push dword [0x5dde2c]
push dword [0x5dde28]
push eax
movzx eax, byte [0x5dde31]
neg eax
push ecx
sbb eax, eax
and eax, 0xfffffffa
add eax, 8
push eax
call fcn.004dba70
cmp byte [0x5dde31], 0
je 0x4d9873
mov eax, 0x5de080
jmp 0x4d987d
push 0x49c
call fcn.00497960
push eax
push 0xa9
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
cmp byte [0x5dde31], 0
je 0x4d989a
mov eax, 0x5de210
jmp 0x4d98a4
push 0x49d
call fcn.00497960
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [0x5dde31], 0
lea eax, [esp + 0x10]
push 0x3b8
push 0
push eax
sete byte [0x5dde31]
call fcn.00520500
add esp, 0xc
mov dword [esp + 0x10], 0x3b8
lea eax, [esp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0x7b
mov dword [esp + 0x1c], 4
push dword [0x5dde04]
push eax
call fcn.004db700
lea eax, [esp + 0x10]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
xor bl, bl
cmp byte [0x5dde31], bl
je 0x4d9927
mov eax, dword [0x5ddd54]
test eax, eax
je 0x4d9927
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne bl
call fcn.00524816
cmp byte [0x5dde31], 0
mov esi, eax
je 0x4d99cf
jmp 0x4d9940
cmp byte [0x57dfb6], 0
jne 0x4d99cf
push 0
push 0
push 0
lea eax, [esp + 0x3e4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4d99cf
lea eax, [esp + 0x3d8]
push eax
push edi
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4d99c2
cmp dword [esp + 0x3dc], 0x203
jne 0x4d99a6
mov eax, dword [esp + 0x3d8]
cmp eax, dword [0x5ab4c4]
jne 0x4d99a6
push dword [0x57cf9c]
mov ecx, 0x5ab4c4
call fcn.004ba180
jmp 0x4d99c2
lea eax, [esp + 0x3d8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x3d8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x5dde31], 0
jne 0x4d9940
call fcn.00524816
sub eax, esi
add dword [0x5ddd98], eax
test bl, bl
je 0x4d99ec
push dword [0x5ddd54]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [0x57dfb6], 0
jne case.0x4d96a3.3
push 0
push 0
push 0x8008
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x4d96a3.3
call fcn.00524816
mov esi, dword [0x591ad0]
mov ebx, eax
push 0
push 0x4d8b90
push edi
push str.CMDMODE
push dword [0x5b76d8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
test eax, eax
je 0x4d9a6b
mov eax, dword [0x591ad0]
cmp eax, esi
je 0x4d9a6b
test eax, eax
je 0x4d9a6b
cmp dword [0x593e90], 0
jne 0x4d9a6b
mov edi, dword [0x596ea0]
test edi, edi
je 0x4d9a6b
mov edx, dword [edi]
dec eax
push eax
mov esi, dword [edx + 0x24]
mov ecx, esi
call dword [0x540780]
mov ecx, edi
call esi
call fcn.00524816
sub eax, ebx
add dword [0x5ddd98], eax
jmp case.0x4d96a3.3
push 0x202
push 0
push 0x8007
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4d96a3.3
push 0
push 0xa9
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x4d96a3.3
lea eax, [esp + 0x3c8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3d0]
sub eax, dword [esp + 0x3c8]
mov dword [0x5de070], eax
mov eax, dword [esp + 0x3d4]
sub eax, dword [esp + 0x3cc]
push 0xc
mov dword [0x5de074], eax
call fcn.005074d2
add esp, 4
test eax, eax
je 0x4d9b06
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x4d9b08
xor eax, eax
push 1
push 0
push 0
push eax
push edi
mov dword [0x5de078], eax
call fcn.00410220
push dword [0x5de060]
lea eax, [esp + 0x510]
mov byte [0x5de07c], 0
push str.InterfaceCmdWin_s
push 0x64
push eax
call fcn.00402930
add esp, 0x10
lea eax, [esp + 0x404]
push 0x2c
push 0
push eax
push str.Placement
lea eax, [esp + 0x51c]
push eax
call fcn.004af150
test eax, eax
je 0x4d9c33
cmp dword [0x57dfb8], 1
je 0x4d9bfb
lea eax, [esp + 0x3d8]
push eax
push dword [0x57cf9c]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x42c]
sub ecx, dword [esp + 0x424]
mov edx, dword [esp + 0x3e4]
add ecx, 0x32
mov esi, dword [esp + 0x3dc]
mov eax, edx
sub eax, esi
cmp ecx, eax
jl 0x4d9bc0
lea eax, [esi + 0x32]
mov dword [esp + 0x424], eax
lea eax, [edx - 0x32]
mov dword [esp + 0x42c], eax
mov ecx, dword [esp + 0x428]
sub ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x3e0]
add ecx, 0x32
mov esi, dword [esp + 0x3d8]
mov eax, edx
sub eax, esi
cmp ecx, eax
jl 0x4d9bfb
lea eax, [esi + 0x32]
mov dword [esp + 0x420], eax
lea eax, [edx - 0x32]
mov dword [esp + 0x428], eax
mov eax, dword [0x5da74c]
sub eax, 0xe
mov dword [esp + 0x404], 0x2c
neg eax
sbb eax, eax
and eax, 5
mov dword [esp + 0x40c], eax
lea eax, [esp + 0x404]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0
push edi
call fcn.0040ff40
cmp dword [0x5da74c], 3
mov byte [0x5de064], 0
jne 0x4d9c57
push 0x4f5
call fcn.00497960
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push edi
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
test esi, esi
je 0x4d9c82
push 1
push 0xf000
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0xf030
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x5da74c]
test eax, eax
je 0x4d9c9d
push 0
push 0xa4
push edi
call fcn.00410430
mov eax, dword [0x5da74c]
cmp byte [0x5ddd51], 0
jne 0x4d9cd7
cmp eax, 1
je 0x4d9cb0
cmp eax, 2
jne 0x4d9cd7
push 0
push 0xa3
push edi
call fcn.00410430
push 0
push 0xa7
push edi
call fcn.00410430
push 0
push 0xa2
push edi
call fcn.00410430
push 1
push 0xffffffffffffffff
push 0x9c
push 0x9c
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push edi
call fcn.004d7bc0
push 1
push 0xffffffffffffffff
push 0xa6
push 0xa6
push edi
mov dword [0x5de068], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push edi
call fcn.004d7bc0
cmp dword [0x57dfb8], 1
mov dword [0x5de06c], eax
mov byte [0x57dfb6], 0
mov byte [0x57dfb7], 0
mov dword [0x57cf80], 1
mov dword [0x57dfa8], edi
mov dword [0x596ea0], 0
je 0x4d9d5f
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
push dword [0x57cf9c]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push dword [0x57cf9c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4d9dc6
push dword [0x57cf9c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4d9dc6
cmp dword [0x5da74c], 0xe
je 0x4d9dc6
lea eax, [esp + 0x3d8]
mov dword [esp + 0x3d8], 0x2c
push eax
push dword [0x57dfa8]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [esp + 0x3d8]
mov dword [esp + 0x3e0], 0
push eax
push dword [0x57cf9c]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0x606060
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x80809e
push 1
push 0
mov dword [0x5dde34], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xeee8e8
push 1
push 0
mov dword [0x5de038], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xffffff
push 1
push 0
mov dword [0x5de03c], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xc0ffff
push 1
push 0
mov dword [0x5de040], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0xb4d4e4
push 1
push 0
mov dword [0x5de044], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x9494b4
push 1
push 0
mov dword [0x5de048], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x464040
push 1
push 0
mov dword [0x5de04c], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push 0x6e6e94
mov dword [0x5de050], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xdcd6d6
mov dword [0x5de054], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xa0c0d0
mov dword [0x5de058], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 1
push 0
push 0x8008
push edi
mov dword [0x5de05c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
cmp dword [0x57dfb8], 1
setne al
jmp 0x4da104
push 0x64
push edi
call dword [sym.imp.USER32.dll_KillTimer]
push 5
push dword [0x57dfa8]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x4da104
sub esi, 0x8007
je 0x4da047
sub esi, 1
jne case.0x4d9204.3
mov eax, dword [0x57dfc0]
test eax, eax
je case.0x4d9204.3
cmp byte [0x596e9c], 0
jne 0x4d9f0f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
jmp 0x4da104
push 0xc8
lea eax, [esp + 0x510]
cmp ebx, 1
push eax
push 0xa9
push edi
sete bh
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x49c
call fcn.00497960
push eax
push 0xa9
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
xor bl, bl
call fcn.00524816
mov cl, 1
mov esi, eax
mov byte [0x5de064], cl
cmp byte [0x57dfb6], bl
jne 0x4d9fea
test cl, cl
je 0x4d9fea
push 0x14
push dword [0x57dfc0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d9fea
test bh, bh
je 0x4d9fea
test bl, bl
jne 0x4d9fc9
push 0x880
lea eax, [esp + 0x6a0]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x57d
call fcn.00497960
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x57d
call fcn.00497960
push 0x880
push eax
push 0x5dc750
call fcn.0049dc20
mov bl, 1
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0044e4d0
cmp byte [0x57dfb6], 0
jne 0x4d9fea
mov cl, byte [0x5de064]
jmp 0x4d9f62
mov byte [0x5de064], 0
call fcn.00524816
sub eax, esi
push eax
call fcn.004d9100
lea eax, [esp + 0x50c]
push eax
push 0xa9
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test bl, bl
je case.0x4d9204.3
lea eax, [esp + 0x69c]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x880
lea eax, [esp + 0x6a0]
push eax
push 0x5dc750
call fcn.0049dc20
xor eax, eax
jmp 0x4da104
cmp ebx, 0x202
jne 0x4da065
push 1
push edi
call fcn.004dbe60
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4d96a3.3
cmp ebx, 0x205
jne case.0x4d96a3.3
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 0x2fe
mov esi, eax
call fcn.00497960
push eax
push 0x7c
push 0
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
push 0x2ff
call fcn.00497960
push eax
push 0x7d
push 0
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
xor eax, eax
cmp byte [0x5dde31], al
setne al
add eax, 0x300
push eax
call fcn.00497960
push eax
push 0x7e
push 0
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
lea eax, [esp + 0x3c8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push 0
push dword [esp + 0x3d8]
push dword [esp + 0x3d8]
push 2
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, 1
mov ecx, dword [esp + 0x179c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00507712
add esp, 0x1790
ret 0x10