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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463bb1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x49594c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
mov edx, 0x488320
lea ecx, [ebp - 0x2c]
call fcn.00418200
add esp, 4
lea ecx, [ebp + 8]
push eax
call fcn.00416290
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x413019
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41300f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41300f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461ffc
add esp, 8
cmp dword [0x498254], 0x10
lea ecx, [ebp + 8]
mov esi, dword [0x498250]
mov eax, 0x498240
cmovae eax, dword [0x498240]
cmp dword [ebp + 0x1c], 0x10
mov edi, dword [ebp + 0x18]
mov edx, edi
cmovae ecx, dword [ebp + 8]
push esi
push eax
call fcn.00419550
add esp, 8
test al, al
jne 0x413169
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x10], 1
call fcn.00418f90
cmp dword [0x498254], 0x10
mov ecx, 0x498240
mov esi, dword [ebp - 0x18]
mov eax, esi
cmovae ecx, dword [0x498240]
mov edi, dword [0x498250]
mov edx, dword [ebp - 0x1c]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x4130c7
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4130d7
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push edi
call fcn.00418d10
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, dword [ebp - 0x18]
mov eax, esi
cmovae ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 0x1c]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x413117
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x413127
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push edi
call fcn.00418d10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.00416290
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x413169
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41315f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41315f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461ffc
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [ebp + 0x1c]
cmp eax, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x4131b7
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4131ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4131ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461ffc
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret