Function at 0x458c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582300
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x70], ebx
test ebx, ebx
jne 0x458cd1
mov al, 1
jmp 0x458f25
push 0x5eaccc
lea ecx, [ebp - 0x40]
call fcn.0041bac0
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.0041ba50
push eax
lea ecx, [ebp - 0x28]
call fcn.0041bac0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00459ad0
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041ba60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041ba60
test bl, bl
jne 0x458d30
xor al, al
jmp 0x458f25
lea ecx, [esi + 4]
call fcn.0041ba50
push 0
push 0x4020
push 7
push 0x120089
push eax
call fcn.00446030
mov ecx, eax
call fcn.00453000
mov edi, eax
mov dword [ebp - 0x68], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__.0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 4], 2
mov dword [ebp - 0x68], 0x5ec034
mov dword [ebp - 4], 3
test edi, edi
je 0x458eeb
cmp edi, 0xffffffff
je 0x458eeb
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00446030
mov ecx, eax
call fcn.00453ba0
mov ebx, dword [ebp - 0x1c]
test eax, eax
jne 0x458e51
mov ecx, dword [ebp - 0x18]
mov eax, 0x7e07e07f
sub ecx, ebx
xor esi, esi
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x74], eax
je 0x458e45
lea edi, [ebx + 8]
lea ecx, [ecx]
push edi
lea ecx, [ebp - 0x58]
call fcn.0041bac0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x6c]
lea ecx, [ecx + 4]
call fcn.0041ba50
push eax
lea ecx, [ebp - 0x40]
call fcn.0041bac0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00459ad0
mov bl, al
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.0041ba60
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.0041ba60
test bl, bl
je 0x458e4b
inc esi
add edi, 0x208
cmp esi, dword [ebp - 0x74]
jb 0x458de0
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0x59], 1
jmp 0x458e55
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x60]
mov byte [ebp - 0x59], 0
mov byte [ebp - 4], 3
test ebx, ebx
je 0x458eb6
mov ecx, dword [ebp - 0x14]
mov eax, 0x7e07e07f
sub ecx, ebx
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x208
mov eax, ebx
cmp ecx, 0x1000
jb 0x458e97
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458f43
push ecx
push ebx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov bl, byte [ebp - 0x59]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x68], vtable.Utils::ResourceHolders::resource_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__struct_Utils::ResourceHolders::puredrop_and_null_t_void___struct_Utils::ResourceHolders::nt_handle_dtor__.0
test edi, edi
je 0x458f1c
cmp edi, 0xffffffff
je 0x458f1c
call fcn.00446030
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x458f02
mov eax, dword [eax + 0x64]
test eax, eax
jne 0x458ef9
push 1
jmp 0x458f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
sete bl
jmp 0x458eb9
push 0xc0000002
call eax
jmp 0x458f15
push edi
call ecx
test eax, eax
je 0x458f1c
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x64]
test ecx, ecx
je 0x458ee7
push eax
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x64], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret 4
call fcn.00555b08
int3