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

Disassembly:
sub esp, 0x440
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x45c]
cmp edi, 1
je 0x45e5e0
mov byte [esp + 0x13], 0
cmp edi, 2
jne 0x45e5e5
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x454]
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x38]
lea edx, [eax + 2]
jmp 0x45e610
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e610
sub eax, edx
sar eax, 1
je 0x45e632
cmp word [esp + eax*2 + 0x36], 0x5c
lea eax, [esp + eax*2 + 0x36]
jne 0x45e632
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x458]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x248]
push eax
push 0x104
push ecx
call esi
lea eax, [esp + 0x244]
lea edx, [eax + 2]
jmp 0x45e660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e660
sub eax, edx
sar eax, 1
je 0x45e688
cmp word [esp + eax*2 + 0x242], 0x5c
lea eax, [esp + eax*2 + 0x242]
jne 0x45e688
xor edx, edx
mov word [eax], dx
mov bl, byte [esp + 0x460]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test bl, bl
je 0x45e744
lea eax, [esp + 0x38]
push eax
call ebp
cmp eax, 0xffffffff
je 0x45e75e
test al, 0x10
je 0x45e75e
movzx esi, word [esp + 0x38]
test esi, 0xffffff80
jne 0x45e6d4
push 1
push esi
call fcn.0049accc
add esp, 8
test eax, eax
je 0x45e6d4
or esi, 0x20
movzx edi, word [esp + 0x244]
test edi, 0xffffff80
jne 0x45e6f6
push 1
push edi
call fcn.0049accc
add esp, 8
test eax, eax
je 0x45e6f6
or edi, 0x20
cmp si, di
jne 0x45e703
cmp word [esp + 0x3a], 0x3a
je 0x45e73d
movzx ecx, byte [esp + 0x13]
push 0
push ecx
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0045e5c0
add esp, 0x10
test al, al
je 0x45e75e
push 1
lea eax, [esp + 0x3c]
call fcn.0045e880
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
mov edi, dword [esp + 0x45c]
lea ecx, [esp + 0x244]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x45e76b
test al, 0x10
je 0x45e75e
cmp byte [esp + 0x13], 0
jne 0x45e790
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x440
ret
test bl, bl
jne 0x45e7c8
lea edx, [esp + 0x244]
push 0
push edx
call fcn.0044bcf0
add esp, 8
test al, al
jne 0x45e794
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
test bl, bl
jne 0x45e7c8
lea eax, [esp + 0x38]
add eax, 0xfffffffe
jmp 0x45e7a0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x45e7a0
mov ecx, dword [str..]
mov edx, dword [0x4bc83c]
mov dword [eax], ecx
mov cx, word [0x4bc840]
mov dword [eax + 4], edx
mov word [eax + 8], cx
lea eax, [esp + 0x38]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e7d0
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x3a], dx
lea eax, [esp + 0x244]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45e7f0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x246], cx
xor eax, eax
test bl, bl
mov dword [esp + 0x18], ecx
sete cl
lea edx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 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
mov dword [esp + 0x20], edx
inc ecx
lea eax, [esp + 0x244]
mov edx, 0x614
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x28], dx
cmp edi, 2
jne 0x45e862
mov eax, 0x615
mov word [esp + 0x28], ax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x440
ret