Function at 0x403640
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x3018
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x3014], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3024]
test ebp, ebp
push esi
push edi
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x18], 0
je 0x40393d
lea esi, [ebp + 0x200]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403690
sub eax, edx
sar eax, 1
je 0x40393d
push 0x800
lea eax, [esp + 0x1024]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push 0x800
lea ecx, [esp + 0x2824]
push 0
push ecx
call fcn.004ab450
add esp, 0xc
push 0x800
lea edx, [esp + 0x2024]
push 0
push edx
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
push 0x527d38
lea edi, [esp + 0x102c]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x40371e
push 0x3ff
push esi
mov eax, edi
push 0x400
push eax
call fcn.004a9be0
add esp, 0x10
lea ecx, [esp + 0x1020]
push ecx
push str.Execute_Command_:___s_
mov ecx, 0x527b30
call fcn.00449000
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea edx, [esp + 0x1020]
push edx
call esi
test eax, eax
je 0x40387e
push 0x3ff
lea eax, [esp + 0x1024]
push eax
lea ecx, [esp + 0x2828]
push 0x400
push ecx
call fcn.004a9be0
lea esi, [ebp + 0xa00]
mov eax, esi
add esp, 0x10
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403780
sub eax, edx
sar eax, 1
je 0x4037c5
push 0
push 0x400
push 0x527d38
lea edi, [esp + 0x202c]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x4037c5
push 0x3ff
push esi
mov edx, edi
push 0x400
push edx
call fcn.004a9be0
add esp, 0x10
lea edx, [ebp + 0x1200]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4037d0
sub eax, esi
sar eax, 1
mov bl, 1
je 0x4037f9
push str.USER
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x4037f9
mov byte [esp + 0x17], bl
lea edx, [ebp + 0x1a00]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403804
sub eax, esi
sar eax, 1
je 0x40382b
push str.SHELLEXECUTE
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x40382b
mov byte [esp + 0x15], bl
lea edx, [ebp + 0x2200]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403836
sub eax, esi
sar eax, 1
je 0x40385d
push str.WAIT
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x40385d
mov byte [esp + 0x16], bl
mov eax, dword [ebp + 0x3200]
or eax, dword [ebp + 0x3204]
je 0x403c8a
mov ecx, dword [ebp + 0x3200]
mov dword [esp + 0x18], ecx
jmp 0x403c8a
push 0x800
lea edx, [esp + 0x1824]
push 0
push edx
call fcn.004ab450
add esp, 0xc
lea eax, [esp + 0x1020]
push eax
push str.EXECUTE_INFO
push 0x4db7ec
lea edx, [esp + 0x182c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea ecx, [esp + 0x824]
push 0
push ecx
call fcn.004ab450
add esp, 0xc
push str.TARGET
lea edx, [esp + 0x1824]
push edx
push 0x4db7ec
lea edx, [esp + 0x82c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x82c]
mov ecx, 0x52895c
call fcn.0044d830
test eax, eax
je 0x40395a
lea edx, [esp + 0x1020]
push edx
push str.Execute__s__has_no_target_file___fail
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x3024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a998e
add esp, 0x3018
ret 4
push 0x800
lea eax, [esp + 0x2824]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
push 0x527d38
lea edi, [esp + 0x282c]
lea edx, [esp + 0x2c]
call fcn.00458ee0
test eax, eax
je 0x4039ab
push 0x3ff
lea ecx, [esp + 0x24]
push ecx
mov edx, edi
push 0x400
push edx
call fcn.004a9be0
add esp, 0x10
lea eax, [esp + 0x1020]
push eax
call esi
test eax, eax
jne 0x4039e0
lea ecx, [esp + 0x2820]
push ecx
lea edx, [esp + 0x1024]
push edx
push str.Execute__s__:_Target_File__s__was_not_found___fail
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
jmp 0x40393d
push 0x800
lea eax, [esp + 0x824]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push str.PARAMETER
lea ecx, [esp + 0x1824]
push ecx
push 0x4db7ec
lea edx, [esp + 0x82c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x82c]
mov ecx, 0x52895c
call fcn.0044d830
test eax, eax
jne 0x403a86
push eax
push 0x400
push 0x527d38
lea edi, [esp + 0x202c]
lea edx, [esp + 0x2c]
call fcn.00458ee0
test eax, eax
je 0x403a86
push 0x3ff
lea ecx, [esp + 0x24]
push ecx
mov edx, edi
push 0x400
push edx
call fcn.004a9be0
add esp, 0x10
push 0x800
lea eax, [esp + 0x824]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push str.ACCESS
lea ecx, [esp + 0x1824]
push ecx
push 0x4db7ec
lea edx, [esp + 0x82c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x82c]
mov ecx, 0x52895c
call fcn.0044d830
test eax, eax
mov bl, 1
jne 0x403b0f
lea ecx, [esp + 0x20]
push str.USER
push ecx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x403b0f
mov byte [esp + 0x17], bl
push 0x800
lea edx, [esp + 0x824]
push 0
push edx
call fcn.004ab450
add esp, 0xc
push str.METHOD
lea eax, [esp + 0x1824]
push eax
push 0x4db7ec
lea edx, [esp + 0x82c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x82c]
mov ecx, 0x52895c
call fcn.0044d830
test eax, eax
jne 0x403b96
lea eax, [esp + 0x20]
push str.SHELLEXECUTE
push eax
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x403b96
mov byte [esp + 0x15], bl
push 0x800
lea ecx, [esp + 0x824]
push 0
push ecx
call fcn.004ab450
add esp, 0xc
push str.WAIT
lea edx, [esp + 0x1824]
push edx
push 0x4db7ec
lea edx, [esp + 0x82c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x82c]
mov ecx, 0x52895c
call fcn.0044d830
test eax, eax
jne 0x403c1d
lea edx, [esp + 0x20]
push str.WAIT
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x403c1d
mov byte [esp + 0x16], bl
push 0x800
lea eax, [esp + 0x824]
push 0
push eax
call fcn.004ab450
add esp, 0xc
push str.RETURN
lea ecx, [esp + 0x1824]
push ecx
push 0x4db7ec
lea edx, [esp + 0x82c]
call fcn.00411a00
add esp, 0xc
push 0x800
lea edx, [esp + 0x24]
push 0
push edx
call fcn.004ab450
add esp, 0xc
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x820]
mov edi, 0x52895c
call fcn.00443be0
test eax, eax
je 0x403c8a
mov dword [esp + 0x18], 0
lea eax, [esp + 0x1020]
push eax
push str.Execute_Command___s__
mov ecx, 0x527b30
call fcn.00449000
lea ecx, [esp + 0x2828]
push ecx
push str.Target_:___s
mov ecx, 0x527b30
call fcn.00449000
lea edx, [esp + 0x2030]
push edx
push str.Parameter:__s
mov ecx, 0x527b30
call fcn.00449000
add esp, 0x18
cmp byte [esp + 0x17], 0
mov eax, str.User
jne 0x403ce3
mov eax, str.Admin
push eax
push str.Mode:__s
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
cmp byte [esp + 0x15], 0
mov eax, str.ShellExecuteEx
jne 0x403d07
mov eax, str.CreateProcess
push eax
push str.Method:__s
mov ecx, 0x527b30
call fcn.00449000
mov bl, byte [esp + 0x1e]
add esp, 8
test bl, bl
mov eax, str.TRUE
jne 0x403d2c
mov eax, str.FALSE
push eax
push str.Wait:__s
mov ecx, 0x527b30
call fcn.00449000
mov eax, dword [esp + 0x20]
push eax
push str.Success_Return:__d
mov ecx, 0x527b30
call fcn.00449000
add esp, 0x10
cmp byte [esp + 0x15], 0
je 0x403d7b
neg bl
lea ecx, [esp + 0x2020]
sbb ebx, ebx
push ebx
push ecx
lea ecx, [esp + 0x1028]
call fcn.00441850
add esp, 8
jmp 0x40393f
neg bl
push 0
lea edx, [esp + 0x2024]
lea ecx, [esp + 0x1024]
sbb ebx, ebx
push ebx
push 0
call fcn.004414b0
add esp, 0xc
jmp 0x40393f