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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48732b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4ba760]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba760]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
xor eax, eax
push ecx
push 0x4a21a8
lea ecx, [esp + 0x198]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x1b], al
call fcn.00410b9f
and dword [esp + 0x2d0], 0
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [ebx + 0x3c]
call fcn.0041128e
lea ecx, [esp + 0x190]
mov byte [esp + 0x2d0], 2
call fcn.00410d9a
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
jmp 0x403241
push edi
lea ecx, [esp + 0xe4]
call fcn.00410d60
lea eax, [esp + 0xe0]
mov byte [esp + 0x2d0], 3
push eax
lea ecx, [esp + 0x30]
call fcn.0040f984
lea eax, [esp + 0x15c]
mov byte [esp + 0x2d0], 4
push eax
lea ecx, [esp + 0x30]
call fcn.0040fb00
mov esi, eax
lea eax, [esp + 0xac]
mov byte [esp + 0x2d0], 5
push eax
lea ecx, [esp + 0x30]
call fcn.0040fb20
push esi
push eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x2d8], 6
call fcn.0042725b
lea ecx, [esp + 0xac]
call fcn.00410d9a
lea ecx, [esp + 0x15c]
mov byte [esp + 0x2d0], 9
call fcn.00410d9a
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x118]
call fcn.00427c1c
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x2d0], 0xa
mov eax, dword [ecx + 0x34]
dec eax
cmp eax, 0xd
ja case.0x4030da.12
jmp dword [eax*4 + 0x403568]
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040fa56
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x4030fd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x15c]
mov dword [esp + 0x18], eax
call fcn.00410d9a
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x403121
test al, 0x10
jne 0x403132
lea ecx, [esp + 0x2c]
call fcn.0040fc6e
test al, al
jne 0x403132
xor cl, cl
jmp 0x403134
mov cl, 1
mov byte [esp + 0x13], cl
jmp 0x4031f1
lea ecx, [esp + 0x1c4]
call fcn.00410aa2
mov byte [esp + 0x2d0], 0xb
lea ecx, [esp + 0x22c]
mov esi, dword [esp + 0x14]
push eax
lea eax, [esp + 0xe4]
or esi, 1
push eax
mov dword [esp + 0x20], esi
call fcn.0042725b
mov dword [esp + 0x2d0], 0xc
or esi, 2
mov ecx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.00427396
test al, al
jne 0x4031a7
lea ecx, [esp + 0x114]
call fcn.00427396
mov byte [esp + 0x13], 0
test al, al
je 0x4031ac
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
test al, 2
je 0x4031cb
and eax, 0xfffffffd
lea ecx, [esp + 0x22c]
mov dword [esp + 0x14], eax
call fcn.00427382
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2d0], 0xa
test al, 1
je case.0x4030da.12
and eax, 0xfffffffe
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x14], eax
call fcn.00410d9a
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x38], 2
jne 0x403204
test cl, cl
sete cl
mov byte [esp + 0x13], cl
test cl, cl
lea ecx, [esp + 0x1c]
jne 0x40350f
call fcn.0040363e
lea ecx, [esp + 0x114]
call fcn.00427382
lea ecx, [esp + 0x2c]
call fcn.004037d4
lea ecx, [esp + 0xe0]
mov byte [esp + 0x2d0], 2
call fcn.00410d9a
add edi, 0x34
cmp edi, ebx
jne 0x403020
jmp 0x403535
lea ecx, [esp + 0x114]
call fcn.00427396
test al, al
jne 0x4032b8
lea ecx, [esp + 0x1f8]
call fcn.00410aa2
mov byte [esp + 0x2d0], 0xd
lea ecx, [esp + 0x274]
mov esi, dword [esp + 0x14]
push eax
lea eax, [esp + 0xe4]
or esi, 4
push eax
mov dword [esp + 0x20], esi
call fcn.0042725b
mov dword [esp + 0x2d0], 0xe
or esi, 8
mov ecx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.00427396
mov byte [esp + 0x13], 0
test al, al
je 0x4032bd
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
test al, 8
je 0x4032dc
and eax, 0xfffffff7
lea ecx, [esp + 0x274]
mov dword [esp + 0x14], eax
call fcn.00427382
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2d0], 0xa
test al, 4
je case.0x4030da.12
and eax, 0xfffffffb
lea ecx, [esp + 0x1f8]
jmp 0x4031e4
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 0x70]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
call fcn.00403667
cmp dword [eax], esi
setne cl
jmp 0x403134
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 0x70]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
call fcn.00403667
cmp dword [eax], esi
sete cl
jmp 0x403134
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
cmp eax, esi
je case.0x4030da.12
add ecx, 0x70
mov dword [esp + 0x24], ecx
add eax, 0x10
lea ecx, [esp + 0xac]
push eax
call fcn.00410d60
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0xb4]
call fcn.00410f00
lea ecx, [esp + 0xac]
cmp eax, 0xffffffff
jne 0x4033a0
call fcn.00410d9a
lea ecx, [esp + 0x18]
call fcn.004036c2
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x403357
jmp case.0x4030da.12
mov byte [esp + 0x13], 1
jmp 0x4031e8
mov esi, dword [esp + 0x1c]
mov cl, 1
mov byte [esp + 0x13], cl
mov eax, dword [esi]
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x4031f1
mov ecx, dword [esp + 0x28]
add ecx, 0x70
mov dword [esp + 0x24], ecx
add eax, 0x10
lea ecx, [esp + 0xac]
push eax
call fcn.00410d60
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0xb4]
call fcn.00410f00
lea ecx, [esp + 0xac]
cmp eax, 0xffffffff
jne 0x403416
call fcn.00410d9a
lea ecx, [esp + 0x18]
call fcn.004036c2
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4033cd
jmp case.0x4030da.12
mov byte [esp + 0x13], 0
jmp 0x4031e8
lea eax, [esp + 0x94]
mov dword [esp + 0x94], 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 + 0xa4], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x2d0], 0x10
push eax
lea ecx, [esp + 0x20]
call fcn.00402ea8
pop ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0x2d0], 0xa
mov byte [esp + 0x13], al
call fcn.0040361a
jmp case.0x4030da.12
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 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 + 0x5c], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x2d0], 0x12
push eax
lea ecx, [esp + 0x20]
call fcn.00402ea8
pop ecx
lea ecx, [esp + 0x4c]
jmp 0x403456
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 + 0x2d0], 0x14
push eax
lea ecx, [esp + 0x20]
call fcn.00402ea8
pop ecx
lea ecx, [esp + 0x64]
jmp 0x403456
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 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 + 0x8c], eax
lea edx, [ecx + 0x70]
mov byte [esp + 0x2d0], 0x16
push eax
lea ecx, [esp + 0x20]
call fcn.00402ea8
pop ecx
lea ecx, [esp + 0x7c]
jmp 0x403456
add ecx, 0x70
call fcn.0042d79c
mov cl, al
jmp 0x403134
add ecx, 0x70
call fcn.0042d99b
jmp 0x4034fe
call fcn.0040363e
lea ecx, [esp + 0x114]
call fcn.00427382
lea ecx, [esp + 0x2c]
call fcn.004037d4
lea ecx, [esp + 0xe0]
call fcn.00410d9a
lea ecx, [esp + 0x38]
call fcn.004037d4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0046933f
mov esp, ebp
pop ebp
ret