Function at 0x451e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
neg eax
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x451e4a
call fcn.0043be20
mov esi, eax
and esi, dword [ebp - 0x18]
add esi, ebx
cmp edi, 7
ja 0x45208c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
lea ebx, [eax - 1]
mov al, 1
mov dword [ebp - 0x20], eax
lea edx, [edi - 2]
xor edi, edi
inc edi
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ebx
cmp edx, 5
jbe 0x45208f
mov edx, 0x2000
mov dword [ebp - 0x14], 0
mov bl, byte [0x4fb74c]
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], edi
push edi
mov dword [ebp - 0x10], edx
push edx
push ecx
push esi
call eax
mov edi, eax
test eax, eax
jne 0x451ebc
cmp byte [ebp - 0x14], 0
je 0x451ebc
mov eax, dword [ebp - 0x10]
and eax, 0x1000
je 0x451ebc
cmp byte [ebp - 0x2c], 0
jne 0x452138
test edi, edi
je 0x451f07
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
lock add dword [0x4fb750], eax
mov eax, edi
and eax, ebx
cmp eax, esi
jne 0x451ee2
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x452089
mov ecx, dword [ebp + 0xc]
lock sub dword [0x4fb750], ecx
mov edx, dword [ebp - 0x28]
jmp 0x451f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x4fb740], eax
xor edi, edi
test esi, esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
je 0x4520de
add edi, ebx
and edi, dword [ebp - 0x18]
add edi, esi
mov esi, edi
test byte [ebp - 0x20], 1
mov dword [ebp - 0x20], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, 1
jne 0x451e72
mov eax, dword [ebp + 0x10]
lea esi, [eax - 0x10000]
mov eax, esi
add eax, ecx
jb 0x4520d8
mov ecx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x14], ecx
cmp edx, 5
jbe 0x452105
mov edx, 0x2000
mov dword [ebp - 0x20], 0
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov bl, byte [0x4fb74c]
mov dword [ebp - 0x10], edi
push edi
mov dword [ebp - 0x18], edx
push edx
push ecx
push 0
call eax
mov edi, eax
test eax, eax
jne 0x451fb5
cmp byte [ebp - 0x20], 0
je 0x451fb5
mov eax, dword [ebp - 0x18]
and eax, 0x1000
je 0x451fb5
test bl, bl
jne 0x45238f
test edi, edi
je 0x452031
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
lock add dword [0x4fb750], eax
mov eax, edi
and eax, edx
sub ecx, eax
mov eax, 0
cmovb eax, dword [ebp + 0x10]
lea ebx, [ecx + eax]
mov eax, esi
sub eax, ebx
or eax, ebx
mov dword [ebp - 0x2c], esi
je 0x45206e
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x4520db
add ebx, edi
mov eax, dword [ebp - 0x14]
lock sub dword [0x4fb750], eax
sub esp, 8
push dword [ebp + 0x18]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.004399a0
add esp, 0x14
test eax, eax
je 0x45206c
mov edi, eax
lock add dword [0x4fb750], esi
jmp 0x451ed8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xchg dword [0x4fb740], eax
call fcn.004b9920
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push 0
call fcn.004399a0
add esp, 0x14
mov edi, eax
test eax, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x24]
jne 0x451fbf
xor edi, edi
jmp 0x451ed8
xor edi, edi
test edi, edi
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov eax, 1
je 0x451f68
jmp 0x451ed8
int3
int3
mov edi, eax
jmp dword [edx*4 + 0x4dd558]
mov al, 1
mov dword [ebp - 0x14], eax
mov eax, edi
mov edi, 4
jmp 0x4520c0
mov al, 1
mov dword [ebp - 0x14], eax
mov eax, edi
mov edi, 0x40
jmp 0x4520c0
mov al, 1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x18]
mov eax, edi
mov edi, edx
mov edx, 0x3000
jmp 0x451e87
mov al, 1
mov dword [ebp - 0x14], eax
mov eax, edi
mov edi, 0x20
jmp 0x4520c0
int3
int3
mov edi, ecx
call fcn.004b9920
sub esp, 8
push dword [ebp + 0x18]
push edi
push 0
call fcn.004399a0
add esp, 0x14
mov edi, eax
test eax, eax
jne 0x451ec6
jmp 0x452065
mov al, 1
mov dword [ebp - 0x20], eax
jmp dword [edx*4 + 0x4dd570]
mov edi, 0x20
jmp 0x452129
mov edi, 4
jmp 0x452129
mov edi, 0x40
jmp 0x452129
mov edi, dword [ebp + 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, 0x3000
jmp 0x451f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452154
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452192
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4521d0
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x45220e
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x45224c
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x45228a
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4522c8
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452306
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452344
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452382
cmp eax, 0x27b
jne 0x451f07
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x451f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4523ab
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4523ea
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452429
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452468
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4524a7
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4524e6
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452525
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x452564
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4525a3
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test eax, eax
jne 0x451fb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x5ae]
cmp ecx, 2
jb 0x4525e2
cmp eax, 0x27b
jne 0x452031
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x452031