Function at 0x417bc6
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432d7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x50]
push edx
call fcn.00417a1a
add esp, 4
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
test eax, eax
je 0x417c43
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
sub eax, 1
push eax
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x417c43
push 0x5c
lea ecx, [ebp - 0x50]
call dword [0x4356ac]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417c7d
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
and eax, 0xff
test eax, eax
jne 0x417ceb
mov eax, dword [ebp + 0x10]
push eax
push 0x20
lea ecx, [ebp - 0xbc]
push ecx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4356b0]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x44
push 0
lea ecx, [ebp - 0x94]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x68], 1
mov word [ebp - 0x64], 0
push 0x10
push 0
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x98], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
add eax, 1
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x417fc3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
xor ecx, ecx
cmp dword [ebp + 0x18], 0
sete cl
mov edx, 2
sub edx, ecx
mov dword [ebp - 0xa8], edx
mov byte [ebp - 0x9c], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0x98], 1
mov ecx, dword [ebp - 0x9c]
and ecx, 0xff
test ecx, ecx
jne 0x417ea1
mov edx, dword [ebp - 0xac]
cmp edx, dword [ebp - 0xa8]
je 0x417e02
cmp dword [ebp - 0xac], 1
jne 0x417ea1
cmp dword [ebp + 0x14], 0
je 0x417e13
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe4], eax
jmp 0x417e1d
mov dword [ebp - 0xe4], 0xffffffff
push 0x1ff
mov ecx, dword [ebp - 0xe4]
push ecx
push 0
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0xac], eax
cmp dword [ebp + 0x18], 0
je 0x417e79
cmp dword [ebp - 0xac], 1
jne 0x417e79
push 1
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00418092
add esp, 0xc
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [ebp - 0x98], 0
jmp 0x417e9c
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [ebp - 0xa8]
jne 0x417e9c
call fcn.00417b4d
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x9c], al
jmp 0x417dd3
mov edx, dword [ebp - 0x9c]
and edx, 0xff
test edx, edx
je 0x417ecf
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00418092
add esp, 0xc
mov byte [ebp - 0x98], 0
jmp 0x417fad
cmp dword [ebp - 0xac], 0
jne 0x417ef8
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x417ef3
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffffff
jmp 0x417fad
cmp dword [ebp - 0xac], 0x102
jne 0x417f88
push 1
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00418092
add esp, 0xc
mov byte [ebp - 0x98], 0
push 0x41010
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x118
lea ecx, [ebp - 0xd0]
push ecx
call fcn.0042155e
add esp, 8
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xec]
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.00409cd0
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x417fad
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00418031
add esp, 4
mov byte [ebp - 0x98], 0
push 1
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00418092
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417fcf
lea eax, [ebp - 0x3c]
push eax
call fcn.00418031
add esp, 4
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp - 0xd4]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [ebp - 0x98]
mov byte [ebp - 0xd8], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0xd8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret