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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x440
cmp word [eax], 0
push edi
je 0x45e9c2
mov edi, dword [esp + 0x44c]
cmp word [edi], 0
je 0x45e9c2
mov ecx, dword [esp + 0x450]
cmp ecx, 1
je 0x45e73c
mov byte [esp + 7], 0
cmp ecx, 2
jne 0x45e741
mov byte [esp + 7], 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x104
push eax
call esi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e761
sub eax, edx
sar eax, 1
je 0x45e783
cmp word [esp + eax*2 + 0x2e], 0x5c
lea eax, [esp + eax*2 + 0x2e]
jne 0x45e783
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x240]
push eax
push 0x104
push edi
call esi
lea eax, [esp + 0x23c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e7a2
sub eax, edx
sar eax, 1
je 0x45e7ca
cmp word [esp + eax*2 + 0x23a], 0x5c
lea eax, [esp + eax*2 + 0x23a]
jne 0x45e7ca
xor ecx, ecx
mov word [eax], cx
push ebx
mov bl, byte [esp + 0x45c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test bl, bl
je 0x45e881
lea edx, [esp + 0x38]
push edx
call ebp
cmp eax, 0xffffffff
je 0x45e89b
test al, 0x10
je 0x45e89b
movzx esi, word [esp + 0x38]
test esi, 0xffffff80
jne 0x45e818
push 1
push esi
call fcn.0049adfc
add esp, 8
test eax, eax
je 0x45e818
or esi, 0x20
movzx edi, word [esp + 0x244]
test edi, 0xffffff80
jne 0x45e83a
push 1
push edi
call fcn.0049adfc
add esp, 8
test eax, eax
je 0x45e83a
or edi, 0x20
cmp si, di
jne 0x45e847
cmp word [esp + 0x3a], 0x3a
je 0x45e881
movzx eax, byte [esp + 0x13]
push 0
push eax
lea ecx, [esp + 0x24c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0045e700
add esp, 0x10
test al, al
je 0x45e89b
push 1
lea eax, [esp + 0x3c]
call fcn.0045e9d0
add esp, 4
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x440
ret
lea eax, [esp + 0x244]
push eax
call ebp
cmp eax, 0xffffffff
je 0x45e8a8
test al, 0x10
je 0x45e89b
cmp byte [esp + 0x13], 0
jne 0x45e8cd
pop ebp
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x440
ret
test bl, bl
jne 0x45e908
lea ecx, [esp + 0x244]
push 0
push ecx
call fcn.0044bd80
add esp, 8
test al, al
jne 0x45e8d1
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x440
ret
test bl, bl
jne 0x45e908
lea eax, [esp + 0x38]
add eax, 0xfffffffe
jmp 0x45e8e0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x45e8e0
mov edx, dword [str..]
mov ecx, dword [0x4bc83c]
mov dword [eax], edx
mov dx, word [0x4bc840]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x38]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e910
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x3a], cx
lea eax, [esp + 0x244]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e930
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x246], dx
xor eax, eax
test bl, bl
mov dword [esp + 0x18], edx
sete dl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
inc edx
cmp dword [esp + 0x45c], 2
lea ecx, [esp + 0x244]
mov eax, 0x614
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov word [esp + 0x28], ax
jne 0x45e9a7
mov ecx, 0x615
mov word [esp + 0x28], cx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop ebp
neg eax
pop ebx
sbb eax, eax
pop esi
inc eax
pop edi
add esp, 0x440
ret
xor al, al
pop edi
add esp, 0x440
ret