Function at 0x404c30
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
push ebx
push esi
push edi
push 0xa
push str.E4847ED08866458F8DD35F94B37001C0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4e79bc], eax
mov eax, dword [ebp + 8]
push 0x4e79a0
mov dword [0x4e79b8], eax
call esi
push 0x4e7988
call esi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x48]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x404c9c
push 0xffffffffffffffff
lea eax, [esp + 0x4c]
mov ecx, 0x4e6374
push eax
call fcn.00405700
mov eax, dword [0x4e6378]
test eax, eax
je 0x404cfe
mov eax, dword [eax]
mov edi, 0x4d0335
test eax, eax
cmovne edi, eax
test edi, edi
je 0x404cfe
cmp byte [edi], 0
je 0x404cfe
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x404cc0
sub esi, ecx
lea ecx, [esi + 1]
call fcn.00497860
mov ebx, eax
test ebx, ebx
jne 0x404ce9
push edi
push str.Out_of_memory.
mov ecx, 0x4e9a70
call fcn.004470d0
jmp 0x404d03
test esi, esi
je 0x404cf8
push esi
push edi
push ebx
call fcn.004b19e0
add esp, 0xc
mov byte [ebx + esi], 0
jmp 0x404d03
mov ebx, 0x4d0335
mov dword [0x4e7984], ebx
mov esi, 1
xor bl, bl
mov dword [esp + 0x24], 0
xor bh, bh
mov byte [esp + 0x18], bl
mov byte [esp + 0x12], bh
mov dword [esp + 0x14], esi
call fcn.004b2e4a
mov edi, esi
mov eax, dword [eax]
mov dword [esp + 0x20], eax
call fcn.004b2e4a
cmp dword [eax], esi
jle 0x404fce
call fcn.004b2e50
mov eax, dword [eax]
mov esi, dword [eax + edi*4]
test bh, bh
je 0x404dd6
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push 0x4d04a4
push eax
call fcn.004058d0
add esp, 0xc
mov ebx, eax
cmp byte [esp + 0x28], 0
je 0x405240
lea eax, [esp + 0x13]
mov ecx, 0x4e9a70
push eax
push 3
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x38]
push eax
call fcn.0043a420
test eax, eax
jne 0x404dba
cmp byte [esp + 0x13], al
mov ecx, 0x4e9a70
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0043a960
test eax, eax
je 0x405240
push 1
push 0
push 0xffffffffffffffff
push esi
mov ecx, eax
call fcn.0049e6b0
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
jmp 0x404fb8
push 0x4d04a8
push esi
call fcn.004b218a
add esp, 8
test eax, eax
je 0x4052ed
push str._restart
push esi
call fcn.004b218a
add esp, 8
test eax, eax
je 0x4052ed
push 0x4d04b8
push esi
call fcn.004b218a
add esp, 8
test eax, eax
je 0x4052dd
push str._force
push esi
call fcn.004b218a
add esp, 8
test eax, eax
je 0x4052dd
push 0xc
push str._ErrorStdOut
push esi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x404e69
mov al, byte [esi + 0xc]
lea ecx, [esi + 0xd]
xor edx, edx
mov byte [0x4ea0a3], 1
cmp al, 0x3d
cmovne ecx, edx
call fcn.0042a260
mov esi, dword [esp + 0x14]
mov dword [0x4ea0a4], eax
jmp 0x404fc0
push str._iLib
push esi
call fcn.004b218a
add esp, 8
test eax, eax
jne 0x404edc
inc edi
call fcn.004b2e4a
cmp edi, dword [eax]
jge 0x405240
push 0x38
call fcn.004ae4f6
add esp, 4
mov esi, eax
mov ecx, esi
call fcn.00404710
mov dword [esi], vtable.TextFile.0
mov dword [esi + 0x34], 0xffffffff
mov dword [0x4ea0a8], esi
call fcn.004b2e50
mov ecx, dword [0x4ea0a8]
push 0xfde9
push 0x15
mov eax, dword [eax]
push dword [eax + edi*4]
call fcn.00497ff0
test al, al
je 0x405240
mov esi, dword [esp + 0x14]
jmp 0x404fc0
push 0x4d04dc
push esi
call fcn.004b218a
add esp, 8
test eax, eax
je 0x4052ca
push str._Execute
push esi
call fcn.004b218a
add esp, 8
test eax, eax
je 0x4052ca
push 3
push 0x4d04ec
push esi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x404f32
lea ecx, [esi + 3]
call fcn.00404660
mov esi, dword [esp + 0x14]
mov dword [0x4e7980], eax
jmp 0x404fc0
cmp dword [0x4e6320], 0xffffffff
jne 0x405296
push 6
push str._Debug
push esi
call fcn.004b2c54
add esp, 0xc
test eax, eax
jne 0x405296
mov al, byte [esi + 6]
test al, al
je 0x404f66
cmp al, 0x3d
jne 0x405296
cmp al, 0x3d
jne 0x40526b
add esi, 7
push 0x3a
push esi
call fcn.004b4423
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40524e
mov ecx, ebx
sub ecx, esi
test esi, esi
je 0x404fa2
test ecx, ecx
js 0x404f95
push ecx
jmp 0x404f97
push 0xffffffffffffffff
push esi
mov ecx, 0x4e62f8
call fcn.00405700
add ebx, 1
je 0x404fb4
push 0xffffffffffffffff
push ebx
mov ecx, 0x4e6304
call fcn.00405700
mov esi, dword [esp + 0x14]
mov bh, byte [esp + 0x12]
mov bl, byte [esp + 0x18]
inc edi
call fcn.004b2e4a
cmp edi, dword [eax]
jl 0x404d40
lea eax, [esp + 0x13]
mov ecx, 0x4e9a70
push eax
push 3
lea eax, [esp + 0x24]
push eax
push 0
push 0x4d03bc
call fcn.0043a420
mov ecx, eax
test ecx, ecx
jne 0x405018
cmp byte [esp + 0x13], al
setne al
inc eax
push eax
push dword [esp + 0x20]
push ecx
push 0x4d03bc
mov ecx, 0x4e9a70
call fcn.0043a960
mov ecx, eax
test ecx, ecx
je 0x405240
push 0x18
lea eax, [esi - 1]
cdq
push edx
push eax
call fcn.00401520
lea eax, [esp + 0x13]
mov ecx, 0x4e9a70
push eax
push 0xc1
lea eax, [esp + 0x24]
push eax
push 6
push str.A_Args
call fcn.0043a420
mov edi, eax
test edi, edi
jne 0x405077
cmp byte [esp + 0x13], al
mov ecx, 0x4e9a70
setne al
add eax, 0xc1
push eax
push dword [esp + 0x20]
push 6
push str.A_Args
call fcn.0043a960
mov edi, eax
test edi, edi
je 0x405240
call fcn.004b2e4a
mov esi, dword [eax]
call fcn.004b2e50
mov ecx, dword [esp + 0x20]
sub esi, ecx
mov edx, esi
mov eax, dword [eax]
lea ecx, [eax + ecx*4]
call fcn.0048bee0
test eax, eax
je 0x405240
push eax
mov ecx, edi
call fcn.0049e9e0
mov ecx, dword [0x4e498c]
call fcn.004043f0
cmp dword [0x4e77fc], 0
mov dword [ecx + 0xb4], 0
mov dword [ecx + 0x20], 1
mov dword [ecx + 0xc9], 0x1010001
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0xb8], 5
mov dword [ecx + 0xc0], 0
mov word [ecx + 0xcd], 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 + 0xcf], 2
mov dword [ecx + 0xd0], 0x1000000
mov byte [ecx + 0xd4], 1
mov eax, dword [str._0.6f]
mov dword [ecx + 0x74], eax
mov ax, word [0x4d0690]
mov word [ecx + 0x78], ax
mov word [ecx + 0xd5], 0x44
mov byte [ecx + 0xd9], 1
mov dword [ecx + 0xdc], 0
je 0x405562
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
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 [0x4e797c], eax
call esi
sub esp, 8
mov dword [0x4e7978], eax
push dword [esp + 0x20]
push dword [esp + 0x30]
push ecx
mov ecx, 0x4e9a70
call fcn.0042acd0
cmp eax, 1
jne 0x405240
mov esi, dword [0x4e498c]
mov ecx, 0x3a
mov edi, 0x4e7838
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x4e9a70
call fcn.0042c4f0
cmp eax, 0xffffffff
jne 0x4052fc
mov ecx, dword [0x4ea0a8]
test ecx, ecx
je 0x405240
call fcn.00404770
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x40525f
push 0xffffffffffffffff
push esi
mov ecx, 0x4e62f8
call fcn.00405700
push 0xffffffffffffffff
push str.9000
jmp 0x404faa
push 0xffffffffffffffff
push str.127.0.0.1
mov ecx, 0x4e62f8
call fcn.00405700
push 0xffffffffffffffff
push str.9000
mov ecx, 0x4e6304
call fcn.00405700
mov esi, dword [esp + 0x14]
jmp 0x404fc0
cmp dword [0x4e79bc], 0
mov bh, 1
mov byte [esp + 0x12], bh
jne 0x4052b9
lea eax, [edi + 1]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x404fc0
mov esi, dword [esp + 0x14]
dec edi
lea eax, [edi + 1]
mov dword [esp + 0x20], eax
jmp 0x404fc0
mov esi, dword [esp + 0x14]
mov dword [0x4e79bc], 0
jmp 0x404fc0
mov esi, dword [esp + 0x14]
mov byte [0x4e7962], 1
jmp 0x404fc0
mov esi, dword [esp + 0x14]
mov bl, 1
mov byte [esp + 0x18], bl
jmp 0x404fc0
test eax, eax
je 0x405562
mov eax, dword [0x4e7974]
test eax, eax
jne 0x405342
cmp word [0x4e843c], ax
jne 0x405336
cmp dword [0x4e8424], eax
jne 0x405336
cmp dword [0x4e7970], eax
jne 0x405336
cmp dword [0x4e796c], eax
jne 0x405336
cmp byte [0x4e7961], al
je 0x4053b3
mov dword [0x4e7974], 1
jmp 0x405347
cmp eax, 4
je 0x4053b3
test bl, bl
jne 0x4053bb
cmp byte [0x4e7962], bl
jne 0x40543b
push dword [0x4ea09c]
push dword [0x4e4994]
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x40543b
mov eax, dword [0x4e7974]
cmp eax, 3
je 0x405562
cmp eax, 2
je 0x4053ac
push 0
push dword [0x4ea090]
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.004a02e0
add esp, 8
cmp eax, 7
je 0x405562
mov eax, 0x407
jmp 0x4053d8
test bl, bl
je 0x40543b
push dword [0x4ea09c]
push dword [0x4e4994]
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x40543b
mov eax, 0x406
push 0
push eax
push 0x44
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
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 0x405437
nop dword [eax + eax]
cmp esi, 0x64
jne 0x405427
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.004a02e0
add esp, 8
cmp eax, 7
je 0x405240
xor esi, esi
push 0x32
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405400
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4e79ec
push 0
push 0x2000
call esi
test eax, eax
je 0x40546b
cmp dword [0x4e79ec], 0
je 0x40546b
push 2
push 0
push 0
push 0x2001
call esi
mov ecx, 0x4e9a70
call fcn.0042b4b0
cmp eax, 1
jne 0x405240
push 0
push 4
push 0
push eax
call fcn.004b473d
add esp, 4
push eax
call fcn.004b45f1
mov eax, dword [0x4e4990]
add esp, 0x10
test eax, eax
je 0x4054c7
imul eax, eax, 0x70
push eax
call fcn.004b2c3e
add esp, 4
mov dword [0x4e7968], eax
test eax, eax
je 0x4054c7
imul ecx, dword [0x4e4990], 0x70
push ecx
push 0
push eax
call fcn.004afdf0
add esp, 0xc
mov edx, dword [0x4e62fc]
test edx, edx
je 0x405511
cmp dword [edx + 8], 0
je 0x405511
mov eax, dword [0x4e6308]
mov esi, 0x4d0335
test eax, eax
je 0x4054f0
mov eax, dword [eax]
mov ecx, esi
test eax, eax
cmovne ecx, eax
jmp 0x4054f5
mov ecx, 0x4d0335
mov eax, dword [edx]
test eax, eax
push ecx
cmovne esi, eax
push esi
call fcn.0040ad40
test eax, eax
jne 0x405511
mov ecx, 0x4e6310
call fcn.00406d60
push 0x49dcf0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [0x4e7964], eax
call fcn.00412f30
push 3
push 0
push str.Clipboard
mov ecx, 0x4e9a70
mov byte [0x4ea0a0], 1
mov byte [0x4e7960], 0
call fcn.0043a3b0
test eax, eax
je 0x405554
mov ecx, eax
call fcn.004046e0
call fcn.00405570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10