Function at 0x404fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
push 0xa
push str.E4847ED08866458F8DD35F94B37001C0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4e4c00], eax
mov eax, dword [ebp + 8]
push 0x4e4be4
mov dword [0x4e4bfc], eax
call esi
push 0x4e4bcc
call esi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4e4970
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x405120
mov word [0x4e4970], ax
mov edi, 0x4b8c14
xor bl, bl
mov dword [0x4e4bc8], edi
mov esi, 1
mov byte [esp + 0x18], bl
mov dword [esp + 0x20], 0
mov byte [esp + 0x12], bl
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov edi, esi
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [eax], esi
jle 0x4053da
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop word [eax + eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
cmp byte [esp + 0x12], 0
mov eax, dword [eax]
mov esi, dword [eax + edi*4]
je 0x40518d
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push 0x4b8d98
push eax
call fcn.00405b50
add esp, 0xc
mov dword [esp + 0x28], eax
cmp word [esp + 0x30], 0
je 0x405259
lea ecx, [esp + 0x13]
push ecx
push 3
lea ecx, [esp + 0x2c]
push ecx
push eax
lea eax, [esp + 0x40]
mov ecx, 0x4e6d58
push eax
call fcn.0043b030
test eax, eax
jne 0x405104
cmp byte [esp + 0x13], al
mov ecx, 0x4e6d58
setne al
inc eax
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push dword [esp + 0x30]
push eax
call fcn.0043b590
test eax, eax
je 0x405259
push 1
push 0
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.004a0110
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
jmp 0x4053c7
cmp word [0x4e4970], 0
je 0x405032
mov esi, 0x4e4970
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405136
sub esi, ecx
sar esi, 1
lea ebx, [esi + esi]
lea ecx, [ebx + 2]
call fcn.00499640
mov edi, eax
test edi, edi
jne 0x40516f
push 0x4e4970
push 0x4ccaa4
mov ecx, 0x4e6d58
call fcn.00447a20
jmp 0x405037
test esi, esi
je 0x405182
push ebx
push 0x4e4970
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebx + edi], ax
jmp 0x405037
push 0x4b8da0
push esi
call ebx
add esp, 8
test eax, eax
je 0x4053be
push str._restart
push esi
call ebx
add esp, 8
test eax, eax
je 0x4053be
push 0x4b8dbc
push esi
call ebx
add esp, 8
test eax, eax
je 0x4053b5
push str._force
push esi
call ebx
add esp, 8
test eax, eax
je 0x4053b5
push str._ErrorStdOut
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4051f4
mov byte [0x4e784f], 1
jmp 0x4053c3
push str._iLib
push esi
call ebx
add esp, 8
test eax, eax
jne 0x405267
inc edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp edi, dword [eax]
jge 0x405259
push 0x38
call fcn.004b6030
add esp, 4
mov esi, eax
mov ecx, esi
call fcn.00404b30
mov dword [esi], vtable.TextFile.0
mov dword [esi + 0x34], 0xffffffff
mov dword [0x4e7850], esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov ecx, dword [0x4e7850]
push 0xfde9
push 0x15
mov eax, dword [eax]
push dword [eax + edi*4]
call fcn.00499d80
test al, al
jne 0x4053c3
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x4b8dfc
push esi
call ebx
add esp, 8
test eax, eax
je 0x4053a9
push str._Execute
push esi
call ebx
add esp, 8
test eax, eax
je 0x4053a9
push 3
push 0x4b8e18
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4052b4
lea ecx, [esi + 6]
call fcn.00404ab0
mov dword [0x4e4bc4], eax
jmp 0x4053c3
cmp dword [0x4e3af8], 0xffffffff
jne 0x405384
push 6
push str._Debug
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x405384
movzx eax, word [esi + 0xc]
test ax, ax
je 0x4052ec
cmp eax, 0x3d
jne 0x405384
cmp eax, 0x3d
jne 0x405362
add esi, 0xe
push 0x3a
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
mov ebx, eax
sub esp, 8
mov ecx, esi
test ebx, ebx
je 0x40533c
mov edx, ebx
sub edx, esi
sar edx, 1
push edx
mov edx, 0x4e3acc
call fcn.00499980
add esp, 4
lea ecx, [ebx + 2]
mov edx, 0x4e3ad8
push 0xffffffffffffffff
call fcn.00499980
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0xc
jmp 0x4053c3
push 0xffffffffffffffff
mov edx, 0x4e3acc
call fcn.00499980
add esp, 8
mov ecx, 0x4e3ad8
push str.9000
call fcn.00405920
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
jmp 0x4053c3
push ecx
push str.127.0.0.1
mov ecx, 0x4e3acc
call fcn.00405920
push ecx
push str.9000
mov ecx, 0x4e3ad8
call fcn.00405920
jmp 0x4053c3
cmp dword [0x4e4c00], 0
mov byte [esp + 0x12], 1
jne 0x40539f
lea eax, [edi + 1]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
jmp 0x4053c3
dec edi
lea eax, [edi + 1]
mov dword [esp + 0x1c], eax
jmp 0x4053c3
mov dword [0x4e4c00], 0
jmp 0x4053c3
mov byte [0x4e4baa], 1
jmp 0x4053c3
mov byte [esp + 0x18], 1
mov esi, dword [esp + 0x14]
inc edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp edi, dword [eax]
jl 0x405080
mov bl, byte [esp + 0x18]
lea eax, [esp + 0x13]
mov ecx, 0x4e6d58
push eax
push 3
lea eax, [esp + 0x30]
push eax
push 0
push 0x4b8cc8
call fcn.0043b030
mov ecx, eax
test ecx, ecx
jne 0x405424
cmp byte [esp + 0x13], al
setne al
inc eax
push eax
push dword [esp + 0x2c]
push ecx
push 0x4b8cc8
mov ecx, 0x4e6d58
call fcn.0043b590
mov ecx, eax
test ecx, ecx
je 0x405259
push 0x18
lea eax, [esi - 1]
cdq
push edx
push eax
call fcn.00401560
lea eax, [esp + 0x13]
mov ecx, 0x4e6d58
push eax
push 0xc1
lea eax, [esp + 0x30]
push eax
push 6
push str.A_Args
call fcn.0043b030
mov edi, eax
test edi, edi
jne 0x405483
cmp byte [esp + 0x13], al
mov ecx, 0x4e6d58
setne al
add eax, 0xc1
push eax
push dword [esp + 0x2c]
push 6
push str.A_Args
call fcn.0043b590
mov edi, eax
test edi, edi
je 0x405259
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
mov ecx, dword [esp + 0x1c]
sub esi, ecx
mov edx, esi
mov eax, dword [eax]
lea ecx, [eax + ecx*4]
call fcn.0048d880
test eax, eax
je 0x405259
push eax
mov ecx, edi
call fcn.004a0470
mov ecx, dword [0x4e211c]
call fcn.004049b0
cmp dword [0x4e4824], 0
mov dword [ecx + 0xd4], 0
mov dword [ecx + 0x20], 1
mov dword [ecx + 0xe9], 0x1010001
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0xd8], 5
mov dword [ecx + 0xe0], 0
mov word [ecx + 0xed], 1
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], connect
mov dword [ecx + 0x40], connect
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x50], 0x2af8
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x54], 0x64
mov dword [ecx + 0x58], 0x14
mov dword [ecx + 0x5c], 0xa
mov dword [ecx + 0x60], 0xffffffff
mov dword [ecx + 0x64], 0xffffffff
mov dword [ecx + 0x68], 0xffffffff
mov dword [ecx + 0x6c], 0xa
mov dword [ecx + 0x70], 0xffffffff
mov byte [ecx + 0xef], 2
mov dword [ecx + 0xf0], 0x1000000
mov byte [ecx + 0xf4], 1
movq xmm0, qword [str._0.6f]
movq qword [ecx + 0x74], xmm0
mov eax, dword [0x4b907c]
mov dword [ecx + 0x7c], eax
mov word [ecx + 0xf5], 0x44
mov byte [ecx + 0xf9], 1
mov dword [ecx + 0xfc], 0
je 0x4058f8
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CryptEncrypt
push edi
call esi
push str.CryptDecrypt
push edi
mov dword [0x4e4bc0], eax
call esi
sub esp, 8
mov dword [0x4e4bbc], eax
push dword [esp + 0x20]
push dword [esp + 0x2c]
push ecx
mov ecx, 0x4e6d58
call fcn.00429cb0
cmp eax, 1
jne 0x405259
mov esi, dword [0x4e211c]
mov ecx, 0x42
mov edi, 0x4e4860
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x4e6d58
call fcn.0042b430
cmp eax, 0xffffffff
jne 0x405663
mov ecx, dword [0x4e7850]
test ecx, ecx
je 0x405259
call fcn.00404b90
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test eax, eax
je 0x4058f8
mov eax, dword [0x4e4bb8]
test eax, eax
jne 0x4056a9
cmp word [0x4e56e4], ax
jne 0x40569d
cmp dword [0x4e56cc], eax
jne 0x40569d
cmp dword [0x4e4bb4], eax
jne 0x40569d
cmp dword [0x4e4bb0], eax
jne 0x40569d
cmp byte [0x4e4ba9], al
je 0x405719
mov dword [0x4e4bb8], 1
jmp 0x4056ae
cmp eax, 4
je 0x405719
test bl, bl
jne 0x40571d
cmp byte [0x4e4baa], bl
jne 0x40579b
push dword [0x4e7848]
push str.MainGUI
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40579b
mov eax, dword [0x4e4bb8]
cmp eax, 3
je 0x4058f8
cmp eax, 2
je 0x405712
push 0
push dword [0x4e783c]
xorps xmm3, xmm3
mov edx, 4
mov ecx, str.An_older_instance_of_this_script_is_already_running.__Replace_it_with_this_instance__nNote:_To_avoid_this_message__see_SingleInstance_in_the_help_file.
call fcn.004a1c80
add esp, 8
cmp eax, 7
je 0x4058f8
mov eax, 0x407
jmp 0x405739
test bl, bl
je 0x40579b
push dword [0x4e7848]
push str.MainGUI
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40579b
mov eax, 0x406
push 0
push eax
push 0x44
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x32
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405797
nop dword [eax]
cmp esi, 0x64
jne 0x405787
push 0
push 0
xorps xmm3, xmm3
lea edx, [esi - 0x60]
mov ecx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.004a1c80
add esp, 8
cmp eax, 7
je 0x405259
xor esi, esi
push 0x32
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405760
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4e4c44
push 0
push 0x2000
call esi
test eax, eax
je 0x4057cb
cmp dword [0x4e4c44], 0
je 0x4057cb
push 2
push 0
push 0
push 0x2001
call esi
mov ecx, 0x4e6d58
call fcn.0042a3c0
cmp eax, 1
jne 0x405259
push 0
push 4
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov eax, dword [0x4e2120]
add esp, 0x10
test eax, eax
je 0x405830
imul eax, eax, 0xd4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x4e4bac], eax
test eax, eax
je 0x405830
imul ecx, dword [0x4e2120], 0xd4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x4e7a12], 0
jne 0x405854
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 8
push eax
mov dword [esp + 0x30], 0x1ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [0x4e3ad0]
test esi, esi
je 0x40589e
cmp dword [esi + 8], 0
je 0x40589e
mov eax, dword [0x4e3adc]
mov edx, 0x4b9070
test eax, eax
je 0x40587d
mov eax, dword [eax]
mov ecx, edx
test eax, eax
cmovne ecx, eax
jmp 0x405882
mov ecx, 0x4b9070
mov eax, dword [esi]
test eax, eax
push ecx
cmovne edx, eax
push edx
call fcn.0040b270
test eax, eax
jne 0x40589e
mov ecx, 0x4e3ae8
call fcn.00407240
push 0x49f7d0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
call fcn.00413840
push 3
push 0
push str.Clipboard
mov ecx, 0x4e6d58
mov byte [0x4e784c], 1
mov byte [0x4e4ba8], 0
call fcn.0043afc0
test eax, eax
je 0x4058dc
mov ecx, eax
call fcn.00404b00
mov ecx, 0x4e6d58
call fcn.0042a950
test eax, eax
je 0x405259
xor edx, edx
lea ecx, [edx + 0xa]
call fcn.00401a30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10