Function at 0x45e410
Capabilities:
Check if file exists
Get file attributes
Get file size
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573003
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5ebea4]
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 dword [ebp - 0x9c], edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e450
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45e470
call esi
cmp eax, 2
je 0x45e4c0
cmp eax, 3
je 0x45e4c0
cmp byte [0x5f27d1], 0
jne 0x45e481
test ebx, 0x400000
jne 0x45e4c0
test ebx, 0x400
jne 0x45e4c0
test bl, 1
je 0x45e4ca
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e498
mov eax, dword [edi]
xor ebx, 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x45e4ca
call esi
cmp dword [edi + 0x14], 8
jb 0x45e4b1
mov edi, dword [edi]
push eax
push edi
push str.____Cant_remove_R_O_attribute__file__s__Code__lu
call fcn.00463ab0
add esp, 0xc
mov eax, 2
jmp 0x45eb37
push edi
lea ecx, [ebp - 0x60]
call fcn.0044c140
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.0044c140
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov dl, byte [0x5f27d1]
call fcn.0045db50
mov byte [ebp - 0x95], al
test al, al
je 0x45e51d
lea eax, [ebp - 0x48]
cmp edi, eax
je 0x45e52a
cmp dword [ebp - 0x34], 8
mov ecx, eax
push dword [ebp - 0x38]
cmovae ecx, dword [ebp - 0x48]
push ecx
mov ecx, edi
call fcn.0044a910
jmp 0x45e52a
cmp byte [0x5f27d1], 0
jne 0x45e7a1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e534
mov eax, dword [edi]
push 0
push 0x2000000
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 0x9c]
mov byte [ebp - 0x96], 0
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x45e62c
call esi
cmp eax, 5
jne 0x45e62c
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 0x96], 1
jb 0x45e581
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x2000000
push 3
push 0
push 7
push 0x80
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e5ce
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
test esi, esi
je 0x45e5c8
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
je 0x45e89e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x45e5d8
mov ecx, dword [edi]
call fcn.0046a1a0
cmp byte [ebp - 0x95], 0
jne 0x45e605
xor dl, dl
lea ecx, [ebp - 0x48]
call fcn.0045db50
mov byte [ebp - 0x95], al
test al, al
je 0x45e605
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call fcn.00451cd0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e60f
mov eax, dword [edi]
push 0
push 0x2000000
push 3
push 0
push 1
push 0xc0000000
push eax
call esi
mov ebx, dword [ebp - 0x9c]
mov dword [ebx], eax
mov esi, dword [ebx]
cmp esi, 0xffffffff
jne 0x45e962
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x9c], ecx
cmp ecx, 0x20
je 0x45e653
cmp ecx, 0x21
jne 0x45e823
push edi
lea ecx, [ebp - 0x30]
call fcn.0044c140
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0x2000000
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e7e3
push 0x34
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.005471b0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call eax
test esi, esi
je 0x45e7e3
cmp dword [ebp - 0x6c], 1
jbe 0x45e7e3
mov eax, dword [ebp - 0x68]
xor esi, esi
add esi, dword [ebp - 0x64]
push 0x5f32b8
adc eax, 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xa4], eax
xor bl, bl
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x18]
mov ecx, 0x5f3298
push eax
call fcn.0045f230
mov ecx, dword [0x5f32a4]
lea edx, [eax*8]
mov eax, dword [edx + ecx]
add ecx, 4
add ecx, edx
mov dword [ebp - 0xa0], eax
mov edx, dword [0x5f329c]
mov dword [ebp - 0x14], ecx
nop
cmp dword [ebp - 0xa0], edx
jne 0x45e72c
mov ecx, edx
jmp 0x45e730
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x45e758
cmp dword [eax + 8], esi
jne 0x45e744
mov ecx, dword [ebp - 0xa4]
cmp dword [eax + 0xc], ecx
je 0x45e74b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
jmp 0x45e720
cmp eax, edx
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
push 0x5f32b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x45e7e3
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45e7a1
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e797
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb53
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov esi, 2
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x45eaeb
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45eae1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb58
jmp 0x45eae1
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45e81d
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb5d
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov ecx, dword [ebp - 0x9c]
cmp byte [0x5f27d1], 0
je 0x45e847
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e836
mov eax, dword [edi]
push ecx
push eax
push str.____Cant_open_file__s__Code__lu
call fcn.00463ab0
add esp, 0xc
jmp 0x45e89e
cmp byte [ebp - 0x96], 0
jne 0x45e8e8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e85e
mov eax, dword [edi]
push 0
push 0x2000000
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e8e8
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45e8e8
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
jne 0x45e8e8
cmp byte [ebp - 0x95], 0
je 0x45e7a1
lea ecx, [ebp - 0x60]
call fcn.0045d5d0
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov ecx, edi
cmovae eax, dword [ebp - 0x60]
cmp dword [edi + 0x14], 8
jb 0x45e8c8
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x45e7a1
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.00451cd0
jmp 0x45e7a1
cmp byte [ebp - 0x95], 0
je 0x45e925
lea ecx, [ebp - 0x60]
call fcn.0045d5d0
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov ecx, edi
cmovae eax, dword [ebp - 0x60]
cmp dword [edi + 0x14], 8
jb 0x45e90e
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x45e925
lea eax, [ebp - 0x60]
mov ecx, edi
push eax
call fcn.00451cd0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45e92f
mov eax, dword [edi]
push eax
push str.___Unlock_queued:__s
call fcn.00463ab0
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x45e945
mov edi, dword [edi]
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00449590
call fcn.0045cde0
add esp, 0x18
mov esi, 1
jmp 0x45e7a6
cmp byte [ebp - 0x95], 0
jne 0x45e977
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45e7a1
push 0x34
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.005471b0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x45e9dc
cmp dword [ebp - 0x6c], 1
jbe 0x45e9dc
mov ecx, dword [ebp - 0x68]
xor eax, eax
add eax, dword [ebp - 0x64]
push 0x5f32b8
adc ecx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0045f2b0
push 0x5f32b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [0x5f32d0], 3
je 0x45eada
mov esi, dword [ebx]
lea ecx, [ebp - 0xc0]
push edi
call fcn.0044c140
mov byte [ebp - 4], 2
test byte [0x5f32d0], 3
je 0x45ea9a
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
push ecx
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0045fb60
add esp, 4
test al, al
je 0x45ea60
cmp dword [ebp - 0xac], 8
lea ecx, [ebp - 0xc0]
lea eax, [ebp - 0x30]
cmovae ecx, dword [ebp - 0xc0]
cmp dword [ebp - 0x1c], 8
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
push str._s__s
call fcn.0045fa80
add esp, 0xc
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45ea9a
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ea90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb62
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov edx, dword [ebp - 0xac]
cmp edx, 8
jb 0x45eada
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ead0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb67
push edx
push ecx
call fcn.0052f5d6
add esp, 8
xor esi, esi
jmp 0x45e7a6
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x45eb35
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45eb2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45eb6c
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov eax, esi
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.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
int3