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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x493fc9
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4c6760]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x4c6760]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
push ecx
push 0x4ae128
lea ecx, [esp + 0x19c]
mov byte [esp + 0x1f], 0
call fcn.0041f65c
and dword [esp + 0x258], 0
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.0041fd4b
lea ecx, [esp + 0x194]
mov byte [esp + 0x258], 2
call fcn.0041f857
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
jmp 0x4131e1
push edi
lea ecx, [esp + 0xe8]
call fcn.0041f81d
lea eax, [esp + 0xe4]
mov byte [esp + 0x258], 3
push eax
lea ecx, [esp + 0x30]
call fcn.0041e47a
lea eax, [esp + 0x118]
mov byte [esp + 0x258], 4
push eax
lea ecx, [esp + 0x30]
call fcn.0041e5f6
mov esi, eax
lea eax, [esp + 0xb0]
mov byte [esp + 0x258], 5
push eax
lea ecx, [esp + 0x30]
call fcn.0041e616
push esi
push eax
lea ecx, [esp + 0x154]
mov byte [esp + 0x260], 6
call fcn.0043550f
lea ecx, [esp + 0xb0]
call fcn.0041f857
lea ecx, [esp + 0x118]
mov byte [esp + 0x258], 9
call fcn.0041f857
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x150]
call fcn.00435ed0
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x258], 0xa
mov eax, dword [ecx + 0x34]
dec eax
cmp eax, 0xd
ja case.0x4130d1.12
jmp dword [eax*4 + 0x41346c]
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x30]
call fcn.0041e54c
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x4130f4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x118]
mov dword [esp + 0x18], eax
call fcn.0041f857
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x413118
test al, 0x10
jne 0x413129
lea ecx, [esp + 0x2c]
call fcn.0041e764
test al, al
jne 0x413129
xor cl, cl
jmp 0x41312b
mov cl, 1
mov byte [esp + 0x17], cl
jmp 0x413191
lea ecx, [esp + 0x1c8]
call fcn.0041f55f
push eax
lea eax, [esp + 0xe8]
mov byte [esp + 0x25c], 0xb
push eax
lea ecx, [esp + 0x204]
call fcn.0043550f
mov ecx, eax
mov byte [esp + 0x258], 0xc
call fcn.0043564a
lea ecx, [esp + 0x1fc]
mov byte [esp + 0x17], al
call fcn.00435636
mov byte [esp + 0x258], 0xa
lea ecx, [esp + 0x1c8]
call fcn.0041f857
mov cl, byte [esp + 0x17]
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x38], 2
jne 0x4131a4
test cl, cl
sete cl
mov byte [esp + 0x17], cl
test cl, cl
lea ecx, [esp + 0x1c]
jne 0x413413
call fcn.00413542
lea ecx, [esp + 0x14c]
call fcn.00435636
lea ecx, [esp + 0x2c]
call fcn.004136d8
lea ecx, [esp + 0xe4]
mov byte [esp + 0x258], 2
call fcn.0041f857
add edi, 0x34
cmp edi, ebx
jne 0x413017
jmp 0x413439
lea ecx, [esp + 0x14c]
call fcn.0043564a
mov cl, al
jmp 0x41312b
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 0x70]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.0041356b
cmp dword [eax], esi
setne cl
jmp 0x41312b
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 0x70]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call fcn.0041356b
cmp dword [eax], esi
sete cl
jmp 0x41312b
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
cmp eax, esi
je case.0x4130d1.12
add ecx, 0x70
mov dword [esp + 0x24], ecx
add eax, 0x10
lea ecx, [esp + 0xb0]
push eax
call fcn.0041f81d
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0xb8]
call fcn.0041f9bd
lea ecx, [esp + 0xb0]
cmp eax, 0xffffffff
jne 0x4132a3
call fcn.0041f857
lea ecx, [esp + 0x18]
call fcn.004135c6
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x41325a
jmp case.0x4130d1.12
mov byte [esp + 0x17], 1
jmp 0x413188
mov esi, dword [esp + 0x1c]
mov cl, 1
mov byte [esp + 0x17], cl
mov eax, dword [esi]
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x413191
mov ecx, dword [esp + 0x28]
add ecx, 0x70
mov dword [esp + 0x24], ecx
add eax, 0x10
lea ecx, [esp + 0xb0]
push eax
call fcn.0041f81d
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0xb8]
call fcn.0041f9bd
lea ecx, [esp + 0xb0]
cmp eax, 0xffffffff
jne 0x413319
call fcn.0041f857
lea ecx, [esp + 0x18]
call fcn.004135c6
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4132d0
jmp case.0x4130d1.12
mov byte [esp + 0x17], 0
jmp 0x413188
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], vtable.std::_Func_impl_struct_std::_Callable_obj_struct_std::greater_class_ICString___0___class_std::allocator_class_std::_Func_class_bool__class_ICString_const___class_ICString_const_____bool__class_ICString_const___class_ICString_const__.0
mov dword [esp + 0x5c], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x258], 0xe
push eax
lea ecx, [esp + 0x20]
call fcn.00412ea8
pop ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x258], 0xa
mov byte [esp + 0x17], al
call fcn.0041351e
jmp case.0x4130d1.12
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.std::_Func_impl_struct_std::_Callable_obj_struct_std::greater_equal_class_ICString___0___class_std::allocator_class_std::_Func_class_bool__class_ICString_const___class_ICString_const_____bool__class_ICString_const___class_ICString_const__.0
mov dword [esp + 0x8c], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x258], 0x10
push eax
lea ecx, [esp + 0x20]
call fcn.00412ea8
pop ecx
lea ecx, [esp + 0x7c]
jmp 0x41334d
lea eax, [esp + 0x64]
mov dword [esp + 0x64], vtable.std::_Func_impl_struct_std::_Callable_obj_struct_std::less_class_ICString___0___class_std::allocator_class_std::_Func_class_bool__class_ICString_const___class_ICString_const_____bool__class_ICString_const___class_ICString_const__.0
mov dword [esp + 0x74], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x258], 0x12
push eax
lea ecx, [esp + 0x20]
call fcn.00412ea8
pop ecx
lea ecx, [esp + 0x64]
jmp 0x41334d
lea eax, [esp + 0x94]
mov dword [esp + 0x94], vtable.std::_Func_impl_struct_std::_Callable_obj_struct_std::less_equal_class_ICString___0___class_std::allocator_class_std::_Func_class_bool__class_ICString_const___class_ICString_const_____bool__class_ICString_const___class_ICString_const__.0
mov dword [esp + 0xa4], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x258], 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.00412ea8
pop ecx
lea ecx, [esp + 0x94]
jmp 0x41334d
add ecx, 0x70
call fcn.0043ba77
jmp 0x4131fa
add ecx, 0x70
call fcn.0043bc76
jmp 0x4131fa
call fcn.00413542
lea ecx, [esp + 0x14c]
call fcn.00435636
lea ecx, [esp + 0x2c]
call fcn.004136d8
lea ecx, [esp + 0xe4]
call fcn.0041f857
lea ecx, [esp + 0x38]
call fcn.004136d8
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00476051
mov esp, ebp
pop ebp
ret