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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2b87
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4fe080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push str.Unspecified_error.
call fcn.004b3d20
add esp, 4
cmp dword [ebp + 8], 0
jne 0x4b9175
push str.Invalid_file_name_specified.
call fcn.004b3d20
add esp, 4
mov eax, 1
jmp 0x4b9515
cmp dword [ebp + 0xc], 0
je 0x4b91e4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.004b5a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004c4200
lea ecx, [ebp - 0x18]
call fcn.004c42a0
lea ecx, [ebp - 0x18]
call fcn.004b62e0
test eax, eax
jne 0x4b91d5
push str.Invalid_destination_file_name_specified.
call fcn.004b3d20
add esp, 4
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004b5bb0
mov eax, dword [ebp - 0x5c]
jmp 0x4b9515
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004b5bb0
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
mov edx, dword [ebp + 8]
push edx
call fcn.004b5a10
mov dword [ebp - 0x98], eax
call fcn.004c83a0
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4b9422
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4b9241
mov edx, dword [ebp - 0x34]
and edx, 0x10
jne 0x4b9241
mov dword [ebp - 0x20], 1
jmp 0x4b9248
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x4b9273
mov ecx, dword [ebp + 0x14]
and ecx, 2
jne 0x4b9273
push str.The_file_does_not_exists_or_not_a_regular_file.
call fcn.004b3d20
add esp, 4
mov eax, 1
jmp 0x4b9515
lea ecx, [ebp - 0x48]
call fcn.004c27d0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x40]
call fcn.004b5cb0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.004b5cb0
mov ecx, dword [ebp + 0x14]
and ecx, 1
je 0x4b92ab
mov dword [ebp - 0x2c], 1
jmp 0x4b92b2
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x4b92c9
mov dword [ebp - 0x24], 1
jmp 0x4b92d0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ecx
cmp dword [ebp + 0xc], 0
je 0x4b92ed
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x44]
call fcn.004b5cb0
jmp 0x4b9379
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004b5a10
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0xffffffff
push 0x5c
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.004c4050
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.004c40e0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4b9361
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x14]
call fcn.004c3f20
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004c2b60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.004b5bb0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x44]
call fcn.004c2b60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004b5bb0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.004c6cb0
lea edx, [ebp - 0xa0]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.004c53f0
push eax
lea ecx, [ebp - 0x68]
call fcn.004c2cb0
movzx eax, al
test eax, eax
je 0x4b93e5
push str.A_file_with_such_a_destination_name_already_exists.
call fcn.004b3d20
add esp, 4
mov dword [ebp - 0x88], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004c2ad0
mov eax, dword [ebp - 0x88]
jmp 0x4b9515
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.004c2de0
mov ecx, eax
call fcn.004c2bf0
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004bbac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004c2ad0
jmp 0x4b9506
lea ecx, [ebp - 0x80]
call fcn.004c27d0
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004b5cb0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x80]
call fcn.004b5cb0
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
mov eax, dword [ebp + 8]
push eax
call fcn.004b5a10
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.004c80e0
add esp, 8
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004c2b60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.004b5bb0
mov ecx, dword [ebp + 0x14]
and ecx, 1
je 0x4b94a3
mov dword [ebp - 0x28], 1
jmp 0x4b94aa
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp + 0x14]
and eax, 4
je 0x4b94c1
mov dword [ebp - 0x30], 1
jmp 0x4b94c8
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xdc
call fcn.004c2de0
mov ecx, eax
call fcn.004c2bf0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004bbac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.004c2ad0
push 0x4ecd90
call fcn.004b3d20
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10