Function at 0x4078b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41aff2
push eax
mov eax, 0x1708
mov dword fs:[0], esp
call fcn.00415b80
push ebx
push ebp
push esi
push edi
call fcn.00407470
test eax, eax
jne 0x4078e6
mov eax, 0xffffffa8
jmp 0x408077
call fcn.004076e0
test eax, eax
jne 0x4078f9
mov eax, 0xffffffa7
jmp 0x408077
call fcn.00406df0
call fcn.00407080
push 0x104
xor ebp, ebp
push 0x19d1320
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esp + 0x1728]
mov ecx, 0x3ee
xor eax, eax
lea edi, [esp + 0x760]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x172c]
lea eax, [esp + 0x760]
push eax
push ecx
push edx
call fcn.00404630
add esp, 0xc
test eax, eax
jne 0x407952
or eax, 0xffffffff
jmp 0x408077
lea eax, [esp + 0x760]
push eax
call fcn.004076f0
add esp, 4
call fcn.00415870
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x14], cl
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea edi, [esp + 0x760]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x1720], ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x407a47
test al, 0x10
je 0x407a47
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x14f], 0x5c
je 0x407a16
mov edi, 0x11b3d54
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x11b3f50
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x55c]
lea ecx, [esp + 0x458]
push eax
lea edx, [esp + 0x35c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x15c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x46c]
push 0x11b3ec4
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x1c
test eax, eax
je 0x407aa6
lea eax, [esp + 0x14]
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.00406850
add esp, 8
jmp 0x407bb4
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x1724], 1
mov byte [esp + 0x40], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1724], 2
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x407b27
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov byte [eax + ebp], 0
mov al, byte [esp + 0x88c]
test al, al
je 0x407b7d
lea edi, [esp + 0x88c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x407b7d
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x88c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], 0
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.00408c40
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x1724], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor ebp, ebp
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp esi, ebp
je 0x407bc9
mov ecx, eax
sub ecx, esi
sar ecx, 5
jne 0x407bf4
cmp esi, eax
mov edi, eax
je 0x407be1
mov ecx, esi
call fcn.00406a90
add esi, 0x20
cmp esi, edi
jne 0x407bcf
mov esi, dword [esp + 0x18]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xfffffffe
jmp 0x408077
lea edx, [esp + 0x14]
lea eax, [esp + 0x88c]
push edx
push eax
call fcn.00406b00
add esp, 8
call fcn.00407470
test eax, eax
jne 0x407c43
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x407c30
mov ecx, esi
call fcn.00406a90
add esi, 0x20
cmp esi, edi
jne 0x407c1e
mov esi, dword [esp + 0x18]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 0xffffffa8
jmp 0x408077
mov al, byte [esp + 0xae4]
test al, al
jne 0x407d0e
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x254], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x254]
push 0x104
push ecx
push ebp
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x55c]
lea eax, [esp + 0x458]
push edx
lea ecx, [esp + 0x35c]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x260]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
push ebp
lea ecx, [esp + 0x370]
push 0x11b3f48
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x274]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
lea ecx, [esp + 0x254]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x407d0e
test al, 0x10
je 0x407d0e
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xae4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
mov dword [esp + 0x28], ebp
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ebp
je 0x407f9d
mov edi, dword [esp + 0x28]
mov edx, ecx
sub edx, eax
sar edx, 5
cmp edi, edx
jae 0x407f9d
mov ecx, dword [ebx + eax + 4]
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp ecx, ebp
mov ebp, edi
je 0x407d4f
mov ebp, ecx
mov eax, dword [ebx + eax + 0x14]
test eax, eax
je 0x407d59
mov edi, eax
push edi
push ebp
push 0x11b3f3c
call dword [sym.imp.MSVCRT.dll_printf]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x668]
push eax
lea edx, [esp + 0x264]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push edi
call dword [sym.imp.MSVCRT.dll__splitpath]
lea ecx, [esp + 0x70]
push 0x11b3ebc
push ecx
call esi
add esp, 0x28
test eax, eax
je 0x407f56
lea edx, [esp + 0x50]
push 0x11b3f34
push edx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea eax, [esp + 0x50]
push 0x11b3f2c
push eax
call esi
add esp, 8
test eax, eax
je 0x407f56
lea ecx, [esp + 0x50]
push 0x11b3f28
push ecx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea edx, [esp + 0x50]
push 0x11b3f20
push edx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea eax, [esp + 0x50]
push 0x11b3f18
push eax
call esi
add esp, 8
test eax, eax
je 0x407f56
lea ecx, [esp + 0x50]
push 0x11b3f10
push ecx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea edx, [esp + 0x50]
push 0x11b3f08
push edx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea eax, [esp + 0x50]
push 0x11b3f00
push eax
call esi
add esp, 8
test eax, eax
je 0x407f56
lea ecx, [esp + 0x50]
push 0x11b3ef8
push ecx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea edx, [esp + 0x50]
push 0x11b3ef0
push edx
call esi
add esp, 8
test eax, eax
je 0x407f56
lea eax, [esp + 0x50]
push 0x11b3db8
push eax
call esi
add esp, 8
test eax, eax
je 0x407f42
lea ecx, [esp + 0x50]
push 0x11b38ec
push ecx
call esi
add esp, 8
test eax, eax
je 0x407f42
lea edx, [esp + 0x50]
push 0x11b3db0
push edx
call esi
add esp, 8
test eax, eax
je 0x407f42
lea eax, [esp + 0x50]
push 0x11b3da8
push eax
call esi
add esp, 8
test eax, eax
je 0x407f42
lea ecx, [esp + 0x50]
push 0x11b3da0
push ecx
call esi
add esp, 8
test eax, eax
je 0x407f42
lea edx, [esp + 0x50]
push 0x11b3d98
push edx
call esi
add esp, 8
test eax, eax
je 0x407f42
lea eax, [esp + 0x50]
push 0x11b3d90
push eax
call esi
add esp, 8
test eax, eax
je 0x407f42
lea ecx, [esp + 0x50]
push 0x11b3ee8
push ecx
call esi
add esp, 8
test eax, eax
jne 0x407f76
lea edx, [esp + 0x760]
mov dword [0x19d152c], 1
push edx
push edi
push ebp
call fcn.00405e10
add esp, 0xc
jmp 0x407f76
lea eax, [esp + 0x760]
push eax
push edi
push ebp
call fcn.00405200
add esp, 0xc
jmp 0x407f76
lea ecx, [esp + 0x760]
push ecx
push ebp
call fcn.004077e0
lea edx, [esp + 0x768]
push edx
push edi
push ebp
call fcn.00405e10
add esp, 0x14
mov eax, dword [esp + 0x170c]
test eax, eax
je 0x407f8a
push edi
call fcn.004074a0
add esp, 4
mov ecx, dword [esp + 0x28]
add ebx, 0x20
inc ecx
xor ebp, ebp
mov dword [esp + 0x28], ecx
jmp 0x407d1a
cmp eax, ecx
mov dword [esp + 0x1720], 0xffffffff
mov ebx, ecx
je 0x40806c
lea esi, [eax + 0x14]
mov eax, dword [esi]
cmp eax, ebp
je 0x407ffd
lea edi, [esi - 4]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_unsigned_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Refcnt_char_const__]
cmp byte [eax], 0
je 0x407feb
mov eax, dword [esi]
mov ecx, edi
push eax
call dword [sym.imp.MSVCP60.dll_private:_unsigned_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Refcnt_char_const__]
cmp byte [eax], 0xff
je 0x407feb
mov ecx, dword [esi]
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_unsigned_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Refcnt_char_const__]
dec byte [eax]
jmp 0x407ffd
mov edx, dword [esi + 8]
mov eax, dword [esi]
add edx, 2
dec eax
push edx
push eax
mov ecx, edi
call fcn.004089e0
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov eax, dword [esi - 0x10]
cmp eax, ebp
je 0x408051
lea edi, [esi - 0x14]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_unsigned_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Refcnt_char_const__]
cmp byte [eax], 0
je 0x40803e
mov ecx, dword [esi - 0x10]
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_unsigned_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Refcnt_char_const__]
cmp byte [eax], 0xff
je 0x40803e
mov edx, dword [esi - 0x10]
mov ecx, edi
push edx
call dword [sym.imp.MSVCP60.dll_private:_unsigned_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Refcnt_char_const__]
dec byte [eax]
jmp 0x408051
mov eax, dword [esi - 8]
mov ecx, dword [esi - 0x10]
add eax, 2
dec ecx
push eax
push ecx
mov ecx, edi
call fcn.004089e0
mov dword [esi - 0x10], ebp
mov dword [esi - 0xc], ebp
mov dword [esi - 8], ebp
add esi, 0x20
lea edx, [esi - 0x14]
cmp edx, ebx
jne 0x407fb5
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1718]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1714
ret